rw = new XhtmlResponseWriter(writer, contentType, characterEncoding);
}
else
{
assert _HTML_MIME_TYPE.equals(contentType);
rw = new HtmlResponseWriter(writer, characterEncoding);
}
// JIRA 2107 - jsf.js cannot handle HTML comments in the <update> element, so we need to suppress debug output
// if we are generating response that will be handled by JSF2.0 Ajax
if (_isJsf2Ajax(fContext.getExternalContext()))