if (log.isDebugEnabled())
log.debug("Authenticating username '" + username + "'");
//principal = realm.authenticate(username, password);
try
{
principal = realm.authenticate(request, response, config);
}
catch(Exception e)
{
log.error("Exception in realm authenticate:",e);
}