In section 3 of the Criminal Procedure Act 2009 —
(a) insert the following definition—
"" youth justice custodial centre" has the same meaning as it has in the Youth Justice Act 2024 .";
(b) for paragraph (d) of the definition of in detention substitute —
"(d) in custody in a youth justice custodial centre within the meaning of the Youth Justice Act 2024 in the legal custody of the Secretary to the Department of Justice and Community Safety; or";
(c) for paragraph (d) of the definition of responsible person substitute —
"(d) in the case of a youth justice custodial centre within the meaning of the Youth Justice Act 2024 , the Secretary to the Department of Justice and Community Safety;";
(d) for paragraph (e) of the definition of sentence substitute —
"(e) an order made under section 365, 367, 373, 380, 387, 397, 409B, 410 or 412 of the Children, Youth and Families Act 2005 , as in force before the repeal of Part 5.3 of that Act, made by the Supreme Court in its original jurisdiction or the County Court in its original jurisdiction; and
(f) an order made under section 245, 249, 269, 273, 280 or 325 of the Youth Justice Act 2024 made by the Supreme Court in its original jurisdiction or the County Court in its original jurisdiction;";
(e) in the note at the foot of the definition of "sentence", for "586 of the Children, Youth and Families Act 2005 " substitute "241 of the Youth Justice Act 2024 ";
(f) the definition of youth justice centre is repealed .