Every person committed to a correctional institution in the county of Providence, on any writ or process in any civil action or by surrender of former bail in the same action, may be let to bail, or to new bail as the case may be, by the warden of the institution or by the officer who served the writ or process, at any time before final judgment shall be rendered on the writ on which the arrest was made, upon his or her giving sufficient surety for his or her appearance at the court to which such writ is returnable, and to abide the final judgment which shall be rendered thereon.
R.I. Gen. Laws § 10-11-5