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