(2)Soon after the arrest, the defaulter shall be produced before the officer issuing the warrant. If the defaulter pays or undertakes to pay the whole or a substantial portion of the arrears and furnishes adequate security therefor, the warrant of arrest may be cancelled. No order for the detention of the defaulter shall be passed unless the officer issuing the warrant has reasons to believe that such detention shall compel the payment of whole or substantial portion of the arrears. The period of detention (not exceeding 15 days) shall also be specified in the detention order.