if (refParagraph == null) {
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) {