in src/main/java/org/apache/sling/rewriter/impl/components/HtmlSerializerFactory.java [81:96]
public void init(ProcessingContext context,
ProcessingComponentConfiguration config)
throws IOException {
String encoding = config.getConfiguration().get("encoding", "UTF-8");
try {
this.setEncoding(encoding);
} catch (UnsupportedEncodingException exception) {
throw new IOException("Encoding not supported: " + encoding);
}
this.setIndentPerLevel(config.getConfiguration().get("indent", 0));
this.setDoctypeDefault(config.getConfiguration().get("doctype-default", String.class));
this.setup(context.getRequest());
this.setOutputStream(context.getOutputStream());
}