}
sections = new ArrayList<SectionWrapper>();
// Find the sectPrs
SectPrFinder sf = new SectPrFinder(wordMLPackage.getMainDocumentPart());
try {
new TraversalUtil(wordMLPackage.getMainDocumentPart().getContents(), sf);
} catch (Docx4JException e) {
log.error(e.getMessage(), e);
}
for (SectPr sectPr : sf.getOrderedSectPrList() ) {
SectionWrapper sw = new SectionWrapper(sectPr, previousHF, rels, evenAndOddHeaders);
sections.add(sw);
previousHF = sw.getHeaderFooterPolicy();
log.debug( "registered sectpr");