// XXX for XHTML 1.0 the content type must be set to "text/html" for IE6
// XXX so at this time we can't differ ...
// xml = true;
TobagoResponseWriter responseWriter;
if (xml) {
responseWriter = new TobagoResponseXmlWriterImpl(writer, contentType, characterEncoding);
} else {
responseWriter = new TobagoResponseWriterImpl(writer, contentType, characterEncoding);
}
if (TobagoConfig.getInstance(FacesContext.getCurrentInstance()).getProjectStage() == ProjectStage.Development) {
return new DebugTobagoResponseWriterWrapper(responseWriter);