search.addModifiedStyleElement(styleElement, modifiedStyleElement);
NodeList paragraphProperties = modifiedStyleElement
.getElementsByTagName("style:paragraph-properties");
if (paragraphProperties != null
&& paragraphProperties.getLength() > 0) {
StyleParagraphPropertiesElement property = (StyleParagraphPropertiesElement) paragraphProperties
.item(0);
property.removeAttribute("fo:break-before");
property.removeAttribute("fo:break-after");
property.removeAttribute("style:page-number");
}
modifiedStyleElement.removeAttribute("style:master-page-name");
newName = name + "-" + makeUniqueName();
NamedNodeMap attributes = modifiedStyleElement.getAttributes();
if (attributes != null) {