TextPElement pEle = null;
try {
OdfContentDom contentDocument = getContentDom();
OdfOfficeAutomaticStyles styles = contentDocument.getAutomaticStyles();
OdfStyle style = styles.newStyle(OdfStyleFamily.Paragraph);
style.newStyleParagraphPropertiesElement().setFoBreakBeforeAttribute(breakAttribute);
if(refParagraph == null){
pEle = getContentRoot().newTextPElement();
} else {
OfficeTextElement contentRoot = getContentRoot();
pEle = contentRoot.newTextPElement();