22. When a debtor is arrested under a warrant issued under section 24 of the Law, he shall be given into the custody of the Governor of the prison mentioned in the warrant, who shall produce such debtor before the Court as it may from time to time direct, and shall safely keep him until such time as the Court shall otherwise order; and any books, papers, moneys, goods, and chattels in the possession of the debtor, which may be seized, shall forthwith be lodged with the Official Receiver or trustee, as the case may be.