When a criminal prosecution in which he appears is continued, the Attorney General shall cause the witnesses in behalf of the State to recognize to appear at the next term, unless otherwise directed by the court, and may procure the attendance of a witness living out of the State deemed by him material in procuring an indictment or conviction. The court shall allow such witness a reasonable compensation beyond his legal fees.
5 M.R.S. § 201