delete(index, leftLength, rightparentElement);
Paragraph orgparagraph = Paragraph
.getInstanceof((TextParagraphElementBase) rightparentElement);
TextDocument document = (TextDocument) orgparagraph
.getOwnerDocument();
paragraphContainer = document.insertParagraph(orgparagraph,
sourceParagraph, false);
handlePageBreak(orgparagraph, pos, continued);
}else{
//at the middle of original Paragraph, split original Paragraph, insert before the second Paragraph.
delete(index, leftLength, rightparentElement);