XWordCursor oWordC = (XWordCursor)
UnoRuntime.queryInterface(XWordCursor.class, oCursor);
oCursor.setString("End of TextSection");
oCursor.gotoStart(false);
oCursor.setString("Start of TextSection ");
oWordC.gotoEndOfWord(false);
XInterface oTS2 = (XInterface) oDocMSF.createInstance
("com.sun.star.text.TextSection");
oTSC = (XTextContent)UnoRuntime.queryInterface(XTextContent.class, oTS2);
oText.insertTextContent(oCursor, oTSC, false);