Where employers utilize statutory provisions to obtain an order for arrest and detention, but upon becoming aware of potential constitutional invalidity agree to the release of the affected person, do not oppose the constitutional challenge, and have an agreement regarding costs, it is not just and equitable to order them to pay costs of the constitutional litigation. The Minister responsible for the relevant statute has a constitutional duty to ensure provisions within his functional area comply with the Constitution, and failure to amend or repeal unconstitutional provisions for an extended period justifies requiring the Minister to bear the full costs of a constitutional challenge. In constitutional litigation challenging the validity of statutes, the true contest is between the applicant and the state, not between the applicant and private parties who merely utilized the unconstitutional provisions without defending their validity.