public boolean remove() {
OdfElement containerElement = (OdfElement) mElement.getParentNode();
try {
mElement.removeChild(getOdfElement());
if (mElement.hasChildNodes() == false)
containerElement.removeChild(mElement);
mOwnerDocument.removeElementLinkedResource(getOdfElement());
} catch (DOMException exception) {
Logger.getLogger(AbstractParagraphContainer.class.getName()).log(Level.WARNING, exception.getMessage());
return false;
}