(1) (a) The authority convening a general or special court-martial shall request the state judge advocate general to detail as military judge thereof a commissioned officer who is a member in good standing of the bar of this state. No person is eligible to act as military judge in a case if he or she is the accuser or witness for the prosecution or has acted as investigating officer or as counsel in the same case.
(b) A military judge may be detailed to a court-martial irrespective of military branch when permitted by the state judge advocate.
(2) The military judge may not consult with the members of the court except in the presence of the accused, trial counsel, and defense counsel, nor may he or she vote with the members of the court.