}
if (config.getConnection_history() != null && !config.getConnection_history().isEmpty()) {
model.put("connection_history", yaml.dumpAs(config.getConnection_history(), Tag.SEQ, FlowStyle.FLOW).trim());
}
DebugConfig dc = config.getDebug();
model.put("hasDebug", dc != null);
if (dc != null) {
model.put("save_format", dc.getSave_format());
model.put("autosave", dc.getAutosave());
if (dc.getAutostart() != null) {
model.put("autostart", indent(2, yaml.dumpAs(dc.getAutostart(), Tag.MAP, FlowStyle.BLOCK)));
}
if (dc.getTile_definitions() != null) {
model.put("tile_definitions", indent(2, yaml.dumpAs(dc.getTile_definitions(), Tag.MAP, FlowStyle.BLOCK)));
}
if (dc.getDraw() != null) {
model.put("draw", indent(1, yaml.dumpAs(dc.getDraw(), Tag.SEQ, FlowStyle.BLOCK)));
}
if (dc.getOff_capabilities() != null) {
model.put("off_capabilities", indent(2, yaml.dumpAs(dc.getOff_capabilities(), Tag.SEQ, FlowStyle.BLOCK)));
}
model.put("area_highlight", dc.getArea_highlight());
}
String result = engine.transform(template, model);
result = result.replace(" !!"+PresetConfig.class.getName(), "");
result = result.replace("\n", System.lineSeparator());