(i) has ever, in a court of the commonwealth, been convicted or adjudicated a youthful offender or delinquent child, or both as defined in section 52 of chapter 119, for the commission of: (A) a felony; (B) a misdemeanor punishable by imprisonment for more than 2 years ; (C) a violent crime as defined in section 121; (D) a violation of any law regulating the use, possession, ownership, transfer, purchase, sale, lease, rental, receipt or transportation of weapons or ammunition for which a term of imprisonment may be imposed; (E) a violation of any law regulating the use, possession or sale of controlled substances, as defined in section 1 of chapter 94C, including, but not limited to, a violation under said chapter 94C; or (F) a misdemeanor crime of domestic violence as defined in 18 U.S.C. 921(a)(33); provided, however, that, except for the commission of a felony, a misdemeanor crime of domestic violence, a violent crime or a crime involving the trafficking of controlled substances, if the applicant has been so convicted or adjudicated or released from confinement, probation or parole supervision for such conviction or adjudication, whichever occurs last, for 5 or more years immediately preceding such application, then the applicant's right or ability to possess a non-large capacity rifle or shotgun shall be deemed restored in the commonwealth with respect to such conviction or adjudication and that conviction or adjudication shall not disqualify the applicant for a firearm identification card;