1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
   | 
 
 
 
 
  private static void createFooterReference(WordprocessingMLPackage wmp, Relationship relationship) {          List<SectionWrapper> sections = wmp.getDocumentModel().getSections();            SectPr sectionProperties = sections.get(sections.size() - 1).getSectPr();            if (sectionProperties == null) {         sectionProperties = FACTORY.createSectPr();         wmp.getMainDocumentPart().addObject(sectionProperties);         sections.get(sections.size() - 1).setSectPr(sectionProperties);     }            FooterReference footerReference = FACTORY.createFooterReference();     footerReference.setId(relationship.getId());     footerReference.setType(HdrFtrRef.DEFAULT);            sectionProperties.getEGHdrFtrReferences().add(footerReference); }
 
  |