The duties of a judge advocate in a trial before a general