code: public static BundleRendererContext getBundleRendererContext(HttpServletRequest request, BundleRenderer renderer) {
  		String bundleRendererCtxAttributeName = BUNDLE_RENDERER_CONTEXT_ATTR_PREFIX + renderer.getResourceType();
  
  		// If we are handling an error dispatch, we should remove the current
  		// RendererContext to use a new one
  		String jawrErrorDispathAttributeName = JAWR_ERROR_DISPATCH + renderer.getResourceType();
  		clearRequestWhenDispatch(request, ERROR_EXCEPTION, bundleRendererCtxAttributeName,
  				jawrErrorDispathAttributeName);
  
  		// If we are handling a forward dispatch, we should remove the current
  		// RendererContext to use a new one
  		String jawrForwardDispathAttributeName = JAWR_FOWARD_DISPATCH + renderer.getResourceType();
  		clearRequestWhenDispatch(request, FORWARD_REQUEST_URI, bundleRendererCtxAttributeName,
  				jawrForwardDispathAttributeName);
  
  		BundleRendererContext ctx = (BundleRendererContext) request.getAttribute(bundleRendererCtxAttributeName);
  		if (ctx == null) {
  			ctx = new BundleRendererContext(request, renderer.getBundler().getConfig());
  			request.setAttribute(bundleRendererCtxAttributeName, ctx);
  		}
  
  		return ctx;
  	}
docs: Returns the bundle renderer context.
  
  @param request
  the request
  @param renderer
  the bundle renderer
  @return the bundle renderer context.