}
} finally {
securityService.setSite(null);
if (requestServed) {
response.endResponse();
response.flushBuffer();
logger.debug("Finished processing of {}", httpRequest.getRequestURI());
} else {
logger.debug("No handler found for {}", request);
DispatchUtils.sendNotFound(request, response);
if (cache != null)