code: protected static void clearRequestWhenDispatch(HttpServletRequest request, String requestDispatchAttribute,
  			String bundleRendererCtxAttributeName, String jawrDispathAttributeName) {
  		if (request.getAttribute(requestDispatchAttribute) != null
  				&& request.getAttribute(jawrDispathAttributeName) == null) {
  			request.removeAttribute(bundleRendererCtxAttributeName);
  			request.setAttribute(jawrDispathAttributeName, Boolean.TRUE);
  		}
  	}
docs: Clears the request when dispatch
  
  @param request
  the request
  @param requestDispatchAttribute
  the request attribute name to determine the dispatch type
  @param bundleRendererCtxAttributeName
  the bundle renderer context attribute to clean
  @param jawrDispathAttributeName
  the jawr dispatch attribute used to ensure that the clear is
  done only once