private HashMap<String, String> getFooterStyleProps(OdfDocument odfDoc, StyleMasterPageElement masterPage) throws Exception {
StylePageLayoutElement pageLayout = getMasterPageLayout(odfDoc, masterPage);
// ODFDOM ToDo: Combine a GETTER for footer Properties in one method
StyleFooterStyleElement footerStyle = OdfElement.findFirstChildNode(StyleFooterStyleElement.class, pageLayout);
Assert.assertNotNull(footerStyle);
StyleHeaderFooterPropertiesElement footerStyleProps = OdfElement.findFirstChildNode(StyleHeaderFooterPropertiesElement.class, footerStyle);
Assert.assertNotNull(footerStyleProps);
// fill map with header attributes name/values
HashMap<String, String> footerProps = new HashMap<String, String>();
NamedNodeMap footerAttrs = footerStyleProps.getAttributes();
for (int i = 0; i < footerAttrs.getLength(); i++) {
footerProps.put(footerAttrs.item(i).getNamespaceURI() + footerAttrs.item(i).getLocalName(), footerAttrs.item(i).getNodeValue());
}
return footerProps;
}