getLogger().debug(
"Authenticating username [" + username + "] with password [" + password + "]");
}
if (username == null || password == null) {
throw new AccessControlException("Username or password is null!");
}
Identity identity = (Identity) request.getSession(false).getAttribute(
Identity.class.getName());
boolean authenticated = authenticate(accreditableManager, username, password, identity);