ยง  109.  Petitioner  to be released from imprisonment. If, at the time
  the discharge is granted, the petitioner is imprisoned, by virtue of  an
  execution  against  his person issued, or of an order of arrest made, in
  an action or special proceeding  founded  upon  a  debt,  liability,  or
  judgment,  as  to  which  he is exempted from arrest or imprisonment, as
  prescribed in the last section  but  one,  the  officer  must  forthwith
  release  him, on production of the discharge, or a certified copy of the
  record thereof.
Structure New York Laws
Article 4 - Insolvent's Exemption From Arrest and Imprisonment
100 - Who May Be Exempted, and by What Court.
105 - Proceedings on Return of Order.
106 - Order Directing Assignment; Assignment Pursuant Thereto.
107 - When Discharge to Be Granted; Effect Thereof.
108 - Discharge and Other Papers to Be Recorded.
109 - Petitioner to Be Released From Imprisonment.