return createUserToken(authenticatedUser);
}
protected User authenticate(final String username, final String password) {
User user = null;
boolean isUserAuthenticated = getUserAuthenticationService().authenticateUser(username, password);
if (isUserAuthenticated) {
user = CheckArg.getNotNull(getUserAuthenticationService().getCurrentUser(), "currentUser");