responseWriter = new XmlResponseWriter(writer, contentType, characterEncoding);
} else {
responseWriter = new HtmlResponseWriter(writer, contentType, characterEncoding);
}
if (TobagoConfig.getInstance(facesContext).getProjectStage() == ProjectStage.Development) {
responseWriter = new DebugResponseWriterWrapper(responseWriter);
}
return responseWriter;
}