If a person comes into this State in obedience to a summons directing the person to attend and testify in this State the person shall not while in this State pursuant to such summons be subject to arrest or the service of process, civil or criminal, in connection with matters which arose before the person's entrance into this State under the summons.
If a person passes through this State while going to another state in obedience to a summons to attend and testify in that state or while returning therefrom, the person shall not while so passing through this State be subject to arrest or the service of process, civil or criminal, in connection with matters which arose before the person's entrance into this State under the summons.
HRS § 836-4