; and (ii) accept transfer or detail as a judge advocate or law specialist within the department concerned; and (C) agree to serve on active duty following completion or other termination of the educational course of legal training for a period of two years for each year or part thereof of such training. (c) Selection Members detailed for legal training under subsection (a) shall be selected on a competitive basis by the Secretary of the military department concerned, under the regulations required by subsection (a). (d) Service and service obligations (1) Except as provided in paragraph (2), any service obligation incurred by a member under an agreement entered into under subsection (b) shall be in addition to any service obligation incurred by the member under any other provision of law or agreement. (2) (A) A member who does not successfully complete a course of legal training to which detailed pursuant to this section shall cease such detail and return to the armed force concerned as an enlisted member. (B) Any time of a member described by subparagraph (A) in a course of legal training described in that subparagraph shall not count toward satisfaction of any period of service required under the current contract or agreement of the member for enlistment in the armed forces. (e) Limitation on number detailable The aggregate number of enlisted members detailed under this section and commissioned officers detailed under section 2004 of this title in any fiscal year by a Secretary of a military department may not exceed 25. (f) Other administrative matters Subsections (d) and (f) of section 2004 of this title shall apply to the detail of members under this section, except that any reference in such section to an officer shall be deemed to be a reference to an enlisted member for such purposes. . (b) Conforming amendments (1) In general Section 2004 of such title is amended— (A) in subsection (a), by striking the second sentence; and (B) in subsection (f)— (i) by inserting (1) after (f)