Section 78. (a) All processes and sentences of courts-martial shall be executed by an officer qualified to serve criminal process. Pretrial confinement or commitment under the sentences may be made to any jail, house of correction or prison in the commonwealth. The master or keeper of the jail, house of correction or prison to which a person is sentenced shall receive and detain the person in the same manner as if the person was sentenced by a civilian court. The necessary charges shall be paid by the commonwealth and approved by the adjutant general.
(b) All fines assessed by a court-martial and collected or withheld shall be paid to the commonwealth through the adjutant general subject to such regulations as the adjutant general may prescribe.