if (pageHeader != null)
{
final Section header = new Section();
header.setNamespace(OfficeNamespaces.STYLE_NS);
header.setType("header");
header.addNode(new RawText(pageHeader));
derived.addNode(header);
}
if (pageFooter != null)
{
final Section footer = new Section();
footer.setNamespace(OfficeNamespaces.STYLE_NS);
footer.setType("footer");
footer.addNode(new RawText(pageFooter));
derived.addNode(footer);
}
return derived;
}