The defendant may, on notice to the plaintiff, render himself or be rendered in discharge of his bail, either before or after judgment, to the court in which the action was brought; but such render shall be made within 20 days after proceedings or an action is commenced against the bail on the recognizance of bail and not after, unless for good cause the court grants further time. Upon the render the defendant shall be committed, and thereupon the bail shall be discharged. At any time before judgment in the action, a defendant who has been rendered in discharge of his bail or has been arrested as provided in section 2A:15-44 of this title, may be released on again giving bail, on notice to the plaintiff.
N.J.S. § 2A:15-47