It seems to fit in with DOD Career Intermission Program (CIP).
This program was to offer active military members a sabbatical (I believe up to 3 years) before returning to active duty. During this period they can pursue additional education and other goals. The governing instruction for the Navy is OPNAVINST 1330.2C.
I am not sure of the Maritime Academies have any programs for the Career Intermission Programs. However, I do know service members that have used the CIP to study for and get their license and then returned to active duty.