} else if (nodeLength == (index + leftLength)) {
// at the end of original Paragraph, insert after original Paragraph
delete(index, leftLength, rightparentElement);
for (int i = 0; i < clist.getLength(); i++) {
OdfElement node = (OdfElement) clist.item(i);
document.insertOdfElement(orgparagraph.getOdfElement(), sourceDocument, node, false);
}
} else {
// at the middle of original Paragraph, split original Paragraph,
// insert before the second Paragraph.
delete(index, leftLength, rightparentElement);