password = "";
}
try {
if (authenticationService.authenticateUser(userName, password)) {
subject.getPrincipals().remove(UserUtil.ANONYMOUS);
subject.getPrincipals().add(new PrincipalImpl(userName));
return true;
} else {
throw new LoginException(LoginException.PASSWORD_NOT_MATCHING);
}
} catch (NoSuchAgent ex) {