178. Substitution of petitioner.

178.     Substitution of petitioner.

Where the petitioner:


    (1)     is subsequently found not to have been entitled to present the petition; or


    (2)     consents to withdraw the petition or to allow it to be dismissed;


    (3)     consents to an adjournment;


    (4)     fails to appear in support of the petition when it is called on in court on the day originally fixed for the hearing, or on a day to which it is adjourned; or


    (5)     appears, but does not apply for an order in the terms of the petition1,

the court may, on such terms as it thinks just,