(1) A person, without lawful authority or reasonable excuse, must not communicate or attempt to communicate with the following persons in contravention of an instruction issued by the Commissioner for Youth Justice under subsection (2) not to do so—
(a) a child or young person held in custody in a youth justice custodial centre;
(b) a child or young person who is attending a youth justice community service centre.
Penalty:
(a) in the case of a child, 120 penalty units or detention in a youth justice custodial centre for 12 months;
(b) in any other case, imprisonment for 2 years.
(2) For the purposes of subsection (1), the Commissioner for Youth Justice may issue a written instruction to any person directing the person not to communicate or attempt to communicate with the following persons in contravention of the instruction—
(a) a child or young person held in custody in a youth justice custodial centre;
(b) a child or young person who is attending a youth justice community service centre.