Except as provided in section 4 of P.L. 1982, c.77 (C.), and unless jurisdiction has been waived under section 7 of P.L. 1982, c.77 (C. ), if during the pendency in any other court of a case charging a person with a crime, offense or violation, it is ascertained that such person was a juvenile at the time of the crime, offense or violation charged, such court shall immediately transfer such case to the Superior Court, Chancery Division, Family Part. The Family Part shall thereupon proceed in the same manner as if the case had been instituted under this chapter in the first instance.
N.J.S. § 2A:4A-25