Detention and Release of Witness. (a) Whenever the court has reason to believe that a witness may be intimidated or become unavailable at the trial, the witness may be detained as a material witness; provided, that no such person may be detained for a period of more than 21 days without a further order being made. A report of the detention shall be made forthwith in the manner provided for the transmission of the record. (b) A person detained as a material witness is entitled to be released as a matter of right upon giving bail for his or her appearance as a witness in an amount fixed by the court. The court may order the witness’ release without bail if he or she has been detained for an unreasonable length of time and may modify the requirement as to bail at any time. Source: 12 TTC § 302.