public void insertTextContent(ITextRange textRange, ITextContent textContent) throws TextException {
try {
if (textContent instanceof IParagraph) {
Object object = xMultiServiceFactory.createInstance("com.sun.star.text.TextTable");
XTextTable xTable = (XTextTable)UnoRuntime.queryInterface(XTextTable.class, object);
xTable.initialize(1,1);
xText.insertTextContent(textRange.getXTextRange(), xTable, false);
XRelativeTextContentInsert xRelativeTextContentInsert = (XRelativeTextContentInsert)UnoRuntime.queryInterface(XRelativeTextContentInsert.class, xText);
xRelativeTextContentInsert.insertTextContentAfter(textContent.getXTextContent(), xTable);
xText.removeTextContent(xTable);
}