public HtmlResponseWriter(
final Writer writer, final String contentType, final String characterEncoding) {
super(writer, contentType, characterEncoding);
if ("application/json".equals(contentType)) {
this.helper = new JsonWriterUtils(writer, characterEncoding);
} else {
this.helper = new HtmlWriterUtils(writer, characterEncoding);
}
this.javascriptWriter = new FastStringWriter();
}