Added spring security utils methods