doc.newParagraph("----Start of " + aSection.getName() + "---------");
doc.appendSection(aSection, false);
doc.newParagraph("----End of " + aSection.getName() + "---------");
doc.newParagraph();
doc.newParagraph();
doc.newParagraph();
}
doc.save(ResourceUtilities.newTestOutputFile("NewSections.odt"));
doc = TextDocument.loadDocument(ResourceUtilities.getTestResourceAsStream("NewSections.odt"));
sections = doc.getSectionIterator();