(1) In section 3 of the Principal Act, after paragraph (iv) of the definition of government custody insert —
"(iva) a person detained in a residential treatment facility in accordance with a residential treatment order made under section 82AA of the Sentencing Act 1991 ; or
(ivb) a child placed in a secure welfare service in accordance with section 173(2)(b) of the Children, Youth and Families Act 2005 ; or".
(2) At the end of section 3 of the Principal Act insert —
"(2) A person who, on the day of commencement of section 24 of the Sex Offenders Registration Amendment (Miscellaneous) Act 2017 , is a person described in paragraph (iva) or (ivb) of the definition of government custody is taken to have entered government custody on that day.".