(b) A juvenile proceeding described in paragraph (a) of this subsection that is subject to a waiver hearing under ORS 419C.349 (1) shall commence in the county where the alleged act was committed and may not be transferred under ORS 419C.050, 419C.053 or 419C.056 unless:
(A) The court determines that the case may not be waived under ORS 419C.349; or
(B) The state stipulates that it will not file a motion requesting waiver under ORS 419C.349 (1).
(2) Notwithstanding the provisions of ORS 34.320, an application for a writ of habeas corpus brought by or on behalf of a person who has been committed or placed in a youth correction facility which attacks the validity of the order of commitment shall be brought in the county in which the court that entered the order of commitment is located. [1993 c.33 §151; 1995 c.422 §73a; 2021 c.240 §1]