In addition to the punishment prescribed by law, the court may require any person convicted of an offense not punishable by imprisonment in the State Prison to recognize to the State, with sufficient sureties, in a reasonable sum, to keep the peace and be of good behavior for a term not exceeding 2 years, and to stand committed until the person so recognizes.
15 M.R.S. § 1706