}
private StringBuffer resolveReferencesOf(StringBuffer bookContent) {
List<ReferenceReplacer> replacers = new ArrayList<ReferenceReplacer>();
replacers.add(new SingleHtmlSectionReferenceReplacer());
replacers.add(new SingleHtmlChapterReferenceReplacer());
ReferenceParser referenceParser = new ReferenceParser(replacers);
bookContent = new StringBuffer(referenceParser.replaceReferences(bookContent.toString()));