In all contested matters in insolvency the court may, in its discretion, award costs to either party to be paid by the other, or to either or both parties to be paid out of the estate, as justice and equity may require. In awarding costs, the court may issue execution therefor. In all involuntary cases under this Title, the court shall allow the petitioning creditors out of the estate of the debtor, if any adjudication of insolvency be made, as a preferred claim, all legal costs and disbursements incurred by them in that behalf.

SOURCE: CCP § 1379.