(1) This section applies to and in relation to an existing custody order for which a limiting term is set under section 264 if the limiting term —
(a) expires on or before the day on which the limiting term is set; or
(b) will expire within 6 months after the day on which the limiting term is set.
(2) If the limiting term of the existing custody order expires on a day that is earlier than the day on which the limiting term is set, the existing custody order continues, on and after the day on which the limiting term expires (whether that day is before, or is or is after commencement day), until an order is made under subsection (4)(a) or (6).
(3) If the limiting term of the existing custody order expires on the day on which the limiting term is set, or after that day but before an order is made under subsection (4)(a) or (6), the existing custody order continues, on and after the day on which the limiting term expires, until an order is made under subsection (4)(a) or (6).
(4) If the proceedings under section 264 are in a court other than the Supreme Court, the court must —
(a) make an order discharging the person from the existing custody order; or
(b) make an order referring the matter to the Supreme Court to be dealt with under subsection (6).
(5) The court must adjourn proceedings under subsection (4) until the Minister informs the court that —
(a) the Minister intends to apply to the Supreme Court for an extended custody order under Part 7 Division 5; or
(b) such an application will not be made.
(6) If the proceedings under section 264 are in the Supreme Court, or the matter is referred to it under subsection (4), the Supreme Court must —
(a) make an order discharging the person from the existing custody order; or
(b) make an order under Part 7 Division 5.
(7) The court must adjourn proceedings under subsection (6) until the Minister —
(a) applies to the court for an extended custody order under Part 7 Division 5; or
(b) informs the court that such an application will not be made.
(8) The Minister may, for the purposes of subsection (7), require the Tribunal to report, under section 103, on the need for an extended custody order in respect of the person subject to the existing custody order.
(9) An order under subsection (4)(a) or (6) has effect —
(a) unless paragraph (b) applies — on the day on which the order is made; or
(b) if the limiting term for the existing custody order expires after the day on which the order is made — when the limiting term for the existing custody order expires.
(10) Part 12 has effect as if the list of decisions in section 214(2) included a decision under subsection (4)(a) or (6)(a) to discharge a person from an existing custody order.