(1) This section applies if—(a) before the commencement, a reference in relation to a person was made to the Mental Health Court; and(b) immediately before the commencement, the reference had not been decided by the court.
(2) This section also applies if—(a) after the commencement, a reference in relation to a person is made to the Mental Health Court; and(b) the offence in relation to the reference was allegedly committed before the commencement.
(3) New section 117A applies in relation to the reference.