if (!successor.isClosed()) {
successor.close();
}
}
DocumentationContext documentationContext = getDocumentationContext(documentationNode);
if (BookBoostUtils.BOOK.equals(type)) {
Document doc = DomBoostUtils.createDefaultDocumentBuilder().newDocument();
fillBook(doc, documentationNode);
OutputStream out = getOutputStream(documentationContext, documentationNode, "index.html");
DomBoostUtils.write(doc, out);
out.close();
} else if (BookBoostUtils.SLIPCASE.equals(type)) {
getLog().debug("closing slipcase");
//write the list of books
Document doc = DomBoostUtils.createDefaultDocumentBuilder().newDocument();
Element body = createHtml(doc, documentationNode.getAttributes().getName(), HTML.Tag.BODY);
Element list = DomBoostUtils.appendElement(doc, body, HTML.Tag.UL);
for (BoostedNode zoomInFocusPoint: documentationNode.getAllZoomInFocus()){
BoostedNode zoomInNode = documentationNode.getZoomIn(zoomInFocusPoint, null);
Object subtype = zoomInNode.getAttributes().getType();
if (BookBoostUtils.BOOK.equals(subtype)) {
Element li = DomBoostUtils.appendElement(doc, list, HTML.Tag.LI);
File directory = documentationContext.getFromAttributesMap(File.class);
DomBoostUtils.appendElement(
doc,
li,
HTML.Tag.A,
ContainerBoostUtils.createMap("href",