New South Wales Consolidated ActsA detention order ceases to have effect:
(a) in the case of a person who is discharged from detention pursuant to section 30 or 31-when the person is discharged,
(b) in the case of a person who is discharged from detention by virtue of an order under section 24 (1) (c):(i) except as provided by subparagraph (ii)-when the person is discharged, or(ii) if the person is discharged subject to conditions and the order is not subsequently revoked-at the end of the period for which the person would otherwise be required, under the detention order, to be detained in a detention centre,
(c) in the case of a person the subject of an order in force under section 19 of the Children (Criminal Proceedings) Act 1987 whereby a court has directed that part only of a term of imprisonment imposed on the person be served in a detention centre-when the person is transferred to a correctional centre in accordance with the order to serve the remainder of the term of imprisonment in a correctional centre, or
(d) in the case of a person who is transferred to a correctional centre pursuant to section 28-when the person is so transferred.