}
UrlRewriter urlRewriter = urlRewriteService.getEngine();
final HttpServletRequest hsRequest = (HttpServletRequest) request;
HttpServletResponse hsResponse = outboundRulesEnabled ? new UrlRewriteWrappedResponse(
(HttpServletResponse) response, hsRequest, urlRewriter)
: (HttpServletResponse) response;
hsResponse = new SessionidRemovalResponseWrapper(hsRequest, hsResponse);