try
{
set(this);
listeners.onBeginRequest(this);
onBeginRequest();
IRequestHandler handler = resolveRequestHandler();
if (handler != null)
{
execute(handler);
return true;
}
// Did not find any suitable handler, thus not executing the request
log.debug(
"No suitable handler found for URL {}, falling back to container to process this request",
request.getUrl());
}
catch (Exception e)
{
IRequestHandler handler = handleException(e);
if (handler != null)
{
listeners.onExceptionRequestHandlerResolved(this, handler, e);
executeExceptionRequestHandler(handler, getExceptionRetryCount());
listeners.onRequestHandlerExecuted(this, handler);