{
incrementFilterCount(request);
if (request.getAttribute(RewriteLifecycleContext.LIFECYCLE_CONTEXT_KEY) == null)
{
HttpRewriteLifecycleContext context = new HttpRewriteContextImpl(inbound, outbound, listeners,
resultHandlers, wrappers, providers);
request.setAttribute(RewriteLifecycleContext.LIFECYCLE_CONTEXT_KEY, context);
}
for (RewriteLifecycleListener<Rewrite> listener : listeners)