An officer of the Judge Advocate General’s Corps who has the qualifications prescribed for the Judge Advocate General in
section 8088(b) of this title may be detailed as Assistant Judge Advocate General of the Navy. An officer who is retired while serving as Assistant Judge Advocate General of the Navy under this subsection or who, after serving at least twelve months as Assistant Judge Advocate General of the Navy, is retired after completion of that service while serving in a lower rank or grade, may, in the discretion of the President, be retired with the rank and grade of rear admiral (lower half).