String target = location.getBuilder().build(event, context, Transpositions.encodePath());
((HttpInboundServletRewrite) event).forward(target);
}
else if (event instanceof HttpOutboundServletRewrite)
{
ParameterizedPatternBuilder builder = location.getBuilder();
String target = builder.build(event, context, Transpositions.encodePath());
if (((HttpOutboundServletRewrite) event).getOutboundAddress().getPath().startsWith(event.getContextPath())
&& target.startsWith("/")
&& !target.startsWith("//")
&& !target.startsWith(event.getContextPath()))
{