map.put("part", part);
map.put("parser", parser);
map.put("partNumber", partNumber);
map.put("chaptersContent", chaptersContent.toString());
map.put("sanitizer", new HtmlSanitizer());
StringBuffer processedContent = new FreemarkerProcessor(cfg).process(map, "bookPart.ftl");
String sluggedPartTitle = Utilities.toDirectoryName(null, part.getTitle());
processedContent = new StringBuffer(processedContent.toString().replace("$$RELATIVE$$", sluggedPartTitle));
return processedContent;
}