Address outboundAddress = ((HttpOutboundServletRewrite) event).getOutboundAddress();
Substitute substitute = Substitute.with(requestPattern + query.toQueryString());
substitute.setParameterStore(store);
substitute.perform(event, context);
Address rewrittenAddress = ((HttpOutboundServletRewrite) event).getOutboundAddress();
String rewrittenPath = rewrittenAddress.getPath();
String contextPath = ((HttpServletRewrite) event).getContextPath();
if (!contextPath.equals("/") && rewrittenPath.startsWith(contextPath))