Section 6. The commissioner may establish a program for the training of residents in professional disciplines as required by departmental programs. Such residents shall be eligible for training grants from the commonwealth. Recipients of said grants shall be exempt from the provisions of chapter thirty-one and shall not be deemed employees of the commonwealth; provided, however, that such recipients shall be deemed public employees under chapter two hundred and fifty-eight. Such grants shall not be deemed income under chapter sixty-two. Approval of such training programs by the personnel administrator shall be required in accordance with the provisions of section twenty-eight of chapter seven.