New South Wales Consolidated Acts(cf ICAC Act s 39; RC (PS) Act s 14)
(1) If the Commissioner requires the attendance at a hearing before the Commission of a prisoner, the Commissioner may, by order in writing served on the governor of the prison in whose custody the prisoner is, direct the governor to produce the prisoner, or have the prisoner produced, at the time and place stated in the order.
(2) Such an order is sufficient authority to the governor of the prison for producing the prisoner or having the prisoner produced, and the prisoner must be produced accordingly.
(3) A prisoner is, when produced under this section in the actual custody of the governor of the prison, a prison officer or a police officer, taken to be in lawful custody.
(4) The governor, prison officer or police officer must in due course return the prisoner to the prison.
(5) In this section, "governor of a prison", "prison" and "prisoner" have the same meanings as "governor", "correctional centre" and "inmate" have in the Crimes (Administration of Sentences) Act 1999 .