if (!Boolean.TRUE.equals(httpServletRequest.getAttribute(RequestParameterServletFilter.REQUEST_PARAM_FILTER_CALLED)))
{
// No servlet filter has wrapped the response, so do it now for the response referenced by this FacesContext.
// Note that this wrapper will therefore apply to all output generated via the FacesContext, but not to
// anything that might be written by filters etc.
response = new RequestParameterResponseWrapper((HttpServletResponse) response);
// We now need to reassure the RequestParameterProviderManager that the response has indeed been
// wrapped; it checks and reports an error if not as it is easy to stuff up this configuration.
//
// However we can not just set the REQUEST_PARAMETER_FILTER_CALLED flag here. If code creates its own