RequestContext requestContext = new RequestContext( request, response );
er.beginPageRequest( requestContext );
long startTime = System.currentTimeMillis();
// Register the default URLRewriter
URLRewriterService.registerURLRewriter( 0, request, new DefaultURLRewriter() );
//
// A ServletContext may have synchronization associated with getting attributes.
// This could be a bottleneck under load for an app with pages that require lots
// of URL rewriting. To improve performance add the template factory and formatter