If the prisoner has been committed on mesne process in a civil action for want of bail, and it appears that the amount for which bail was required is excessive and unreasonable, the court or justice shall decide how much bail is reasonable, and shall order that on giving such bail the prisoner shall be discharged.
Mass. Gen. Laws ch. 248, § 20