law: 114. Duties of the trial judge advocate.
  (1) At all trials by courts-martial it is the duty of the trial judge advocate to decide all questions of law arising in the course of the trial, and specially all questions as to the relevancy of facts which it is proposed to prove and the admissibility of evidence or the propriety of the questions asked by or on behalf of the parties; and in his discretion to prevent the production of inadmissible evidence whether it is or is not objected to by the parties.
  (2) Whenever in the course of a trial it appears desirable to the trial judge advocate that arguments and evidence as to the admissibility of evidence or arguments in support of an application for separate trials or on any other points of law should not be heard in the presence of the court, he may advise the president of the court accordingly and the president shall thereupon make an order for the court to retire or direct the trial judge advocate to hear the arguments in some other convenient place.