If the prisoner is admitted to bail or is committed, the court or justice shall bind by recognizance the material witnesses against the prisoner to appear and testify at the next sitting of the court having jurisdiction of the crime and in which the prisoner is held to answer.
Mass. Gen. Laws ch. 276, § 45