(a) The division shall promulgate regulations governing procedures for certification of detention facilities and for renewal, suspension and revocation of such certifications. Such regulations shall provide for a hearing prior to the suspension or revocation of a certification.
(b) The office of children and family services may suspend a certification for good cause shown. Suspension shall mean that no persons coming within the provisions of article three or seven of the family court act and no alleged or convicted juvenile offender may be received for care in a detention facility, but persons already in care may remain in care. The office may impose such conditions in the event of a suspension as it shall deem necessary and proper.
(c) Such office may revoke a certification for good cause shown. Revocation shall mean that no persons coming within the provisions of article three or seven of the family court act and no alleged or convicted juvenile offender may be received for care nor remain at the detention facility. 6. The division shall be responsible for bringing violations of law pertaining to detention of juveniles to the attention of each appropriate attorney for the child or counsel for the defendant who may petition for habeas corpus for persons aggrieved thereby. 7. The person in charge of each detention facility shall keep a record of all time spent in such facility for each youth in care. The detention facility shall deliver a certified transcript of such record to the office, social services district, or other agency taking custody of the youth pursuant to article three or seven of the family court act, before, or at the same time as the youth is delivered to the office, district or other agency, as is appropriate. 8. The division shall list all facilities certified for the detention of children and shall file a copy of that list periodically with the clerk of the family court in each county, the clerk of the criminal court of the city of New York, the clerk of the supreme court in each county within the city of New York and the clerk of the county court in each county outside the city of New York. 9. Notwithstanding any other provision of law, the office of children and family services in consultation with the state commission of correction shall jointly regulate, certify, inspect and supervise specialized secure detention facilities for adolescent offenders.