It is the right of a witness to be protected from irrelevant, improper or insulting questions, and from harsh or insulting demeanor; to be detained only so long as the interests of justice require it; to be examined only as to matters legal and pertinent to the issue. SOURCE: CCP § 2066. COMMENT: 9 GCA § 52.50 (Crimes and Corrections) provides the criminal penalty for tampering with witnesses.