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);
}
return responseWriter;
}