Justice has been served to a serial rapist thanks to an arrest following a minor traffic violation in 2006, according to the Queens District Attorney’s office.

According to District Attorney Richard Brown, the fingerprints taken during Juan Griffith’s arrest for driving with a suspended license matched those of an individual wanted for questioning in a series of rapes extending back nearly a decade. The prints also matched those recovered from the scene of sexual assaults in 1997 and 2004 in which DNA evidence was collected.

A Queens County grand jury handed down a “John Doe” indictment based on the then-unidentified evidence.

The “John Doe Indictment Project” was begun by the city’s five district attorneys in 2004 to combat a loophole in the law that had been impeding the prosecution of unidentified sexual predators due to the expiration date of the statute of limitations. It allows indictments of unidentified persons based on DNA evidence.

“As a result of the John Doe Indictment Project, justice delayed is no longer justice denied for the victims of sex crimes,” said Brown.

Griffith was convicted on first-degree rape, sodomy and burglary charges and faces consecutive terms of 12 1/2 to 25 years, as well as a consecutive 3 1/2 to 7 years sentence on a sexual abuse charge.

The former Queens Village man is currently awaiting trial on four additional rapes allegedly committed by him between July 1994 and 2004.