12. (1) If any claimant fails, within the period of one month prescribed by section 6(7) or within such longer period as the Settlement Officer may allow under that subsection, to enter with the Settlement Officer into an agreement under section 5 (4) (c), the Settlement Officer shall, if he has not made a declaration under section 5 (4) (a) that the land in respect of which or in respect of a share of or interest in which the claim is made is not claimed by the State or a declaration under section 5 (7) that such land has ceased to be the subject of proceedings under this Ordinance, refer the claim or any portion thereof which is in dispute between himself and the claimant to the District Judge of the district within which the land is situated. *Reference to District Judge or Judge of Primary Court.* (2) Notwithstanding the provisions of subsection (1), whenever the Settlement Officer and the claimant agree that any claim or portion thereof which is in dispute shall be referred to the Judge of the Primary Court of the division within which the land affected is situated, the Settlement Officer shall refer it accordingly, and thereupon the Judge of the Primary Court may exercise and perform in respect of such reference all the powers and duties vested by sections 13, 14, 15, 18, 19, 20, 21 and 22 in the District Judge; and the expression " District Judge", wheresoever in subsection (1) of this section and in sections 13, 14, 15, 18, 19, 20, 21, 22, 26 and 27 occurring, shall be deemed to include a Judge of the Primary Court to whom any such reference has been made.