pEle = getContentRoot().newTextPElement();
} else {
OfficeTextElement contentRoot = getContentRoot();
pEle = contentRoot.newTextPElement();
OdfElement refEle = refParagraph.getOdfElement();
contentRoot.insertBefore(pEle, refEle.getNextSibling());
}
pEle.setStyleName(style.getStyleNameAttribute());
} catch (Exception e) {
Logger.getLogger(TextDocument.class.getName()).log(Level.SEVERE, null, e);
throw new RuntimeException(breakAttribute + "Break appends failed.", e);