public void setConfiguration(Map<String, ? extends Object> configuration) {
try {
this.encoding = ConfigurationUtils.getEncoding(configuration);
this.setEncoding(this.encoding);
} catch (UnsupportedEncodingException e) {
throw new SetupException(e);
}
try {
this.indent = ConfigurationUtils.getIndent(configuration);
this.setIndentPerLevel(this.indent);
} catch (NumberFormatException nfe) {
throw new SetupException(nfe);
}
}