logger.debug("{} access {} is denied", auth.getName(), ae.getResource());
accessDeniedHandler.handle(request, response, (AuthorizationException) exception);
} else {
logger.debug("anonymous access {} is denied", ae.getResource());
sendStartAuthentication(request, response, chain,
new AuthenticationException(ae.getMessage()));
}
}
}