public RequestExceptionHandler decorateRequestExceptionHandler(
final HttpServletResponse response,
final ResponseRenderer renderer,
final ComponentSource componentSource) {
return new RequestExceptionHandler() {
public void handleRequestException(Throwable exception) throws IOException {
Throwable throwable = exception;
while (throwable != null) {
if (throwable instanceof AccessDeniedException) {
response.sendError(HttpServletResponse.SC_FORBIDDEN);