// 293 - Adding optional Maps to generated ODF sources for indexed ODF elements
// Method To be moved on StyleMasterPageElement
private HashMap<String, String> getHeaderStyleProps(OdfDocument odfDoc, StyleMasterPageElement masterPage) throws Exception {
StylePageLayoutElement pageLayout = getMasterPageLayout(odfDoc, masterPage);
// ToDo: Combine a GETTER for header Properties in one method
StyleHeaderStyleElement headerStyle = OdfElement.findFirstChildNode(StyleHeaderStyleElement.class, pageLayout);
Assert.assertNotNull(headerStyle);
StyleHeaderFooterPropertiesElement headerStyleProps = OdfElement.findFirstChildNode(StyleHeaderFooterPropertiesElement.class, headerStyle);
Assert.assertNotNull(headerStyleProps);
// fill map with header attributes name/values
HashMap<String, String> headerProps = new HashMap<String, String>();