Whenever a witness refuses, on the basis of his or her privilege against self-incrimination, to answer a question or to produce other evidence of any kind during a preliminary investigation or at a deposition or at a public hearing, the chairperson may, upon a majority vote of a quorum of the commission, submit a written request to the presiding justice of the superior court to order the witness to answer the question or produce the evidence; provided, however, that if the presiding justice is the subject of the commission proceeding in question, then the request shall be made to the senior associate justice of the superior court. The court, in its discretion, after notice to the witness, may order the witness to answer the question or produce the evidence. The witness may not refuse to comply with the order on the basis of his or her privilege against self-incrimination, but the witness shall not be prosecuted or subjected to penalty or forfeiture for, or on account of, any transaction or matter regarding which, in accordance with the order, he or she gave answer or produced evidence; and no testimony or other evidence compelled under the order, or any information directly or indirectly derived from the testimony or other evidence, shall be used against the witness in any criminal case, except he or she may be prosecuted or subjected to penalty or forfeiture for any perjury, false swearing, or contempt committed in answering or failing to answer, or in producing or failing to produce evidence, in accordance with the order. If a request for an order pursuant to this section relates to the refusal of a witness at a public hearing to answer a question or to produce evidence, then the papers filed with and proceedings before the court shall be open to the public; otherwise, such papers and proceedings shall be confidential. No order entered pursuant to this section shall operate to vacate, modify, or otherwise prevent the enforcement of any conviction, judgment, or sentence entered by any court against the witness prior to the grant of immunity, unless the order entered pursuant to this section expressly so provides.
R.I. Gen. Laws § 8-16-4.3