(a) If it appears to a court, during the pendency of a criminal charge and before the time when jeopardy would attach in the case of an adult, that a minor defendant was a child at the time of an alleged offense, the court shall forthwith transfer the charge against the defendant, together with all papers and documents connected therewith, to the Division. All action taken by the court prior to transfer of the case shall be deemed null and void unless the Division transfers the child for criminal prosecution under section 16-2307.(b) If at the time of an alleged offense, a minor defendant was a child but this fact is not discovered by the court until after jeopardy has attached, the court shall proceed to verdict. If judgment has not been entered, the court shall determine on the basis of the criteria in section 16-2307(e) whether to enter judgment or to refer the case to the Division for disposition. If judgment has been entered, it shall not be set aside on the ground of the defendant's age unless the court, after hearing, determines that (1) neither the defendant nor his counsel, prior to the entry of judgment, had reason to believe that defendant was under the age of eighteen years, and (2) the defendant would not have been transferred for criminal prosecution if his age had been known and the procedure set forth in section 16-2307 had been followed. If the judgment is set aside, the case shall be referred to the Division for disposition. The disposition and all prior proceedings in any court of any case referred to the Division for disposition pursuant to this section shall be subject to the confidentiality provisions of sections 16-2331 through 16-2336.(c) The court making a transfer shall order the minor to be taken forthwith to the Division or to a place of detention designated for children by the Division. The Division shall then proceed as provided in this subchapter.(d) Nothing in this section shall affect the jurisdiction of a court over a person twenty-one years of age or older.Dec. 23, 1963, 77 Stat. 586, Pub. L. 88-241, § 1; July 29, 1970, 84 Stat. 525, Pub. L. 91-358, title I, § 121(a); Mar. 24, 1998, D.C. Law 12-81, § 10(v), 45 DCR 745. Child brought before the issuing court or officer pursuant to arrest warrant, transfer to the Family Division of the Superior Court pursuant to this section, see § 23-563. Juvenile curfew authority, enforcement and penalties, see § 2-1543. .