query.addParameter(string, values.subList(1, values.size()).toArray(new String[] {}));
}
}
}
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))
rewrittenPath = rewrittenPath.substring(contextPath.length());
if (!outboundAddress.equals(rewrittenAddress)