{
// First, get the XSentenceCursor interface of our text cursor
XSentenceCursor xSentenceCursor = (XSentenceCursor) UnoRuntime.queryInterface(
XSentenceCursor.class, mxDocCursor );
// Goto the next cursor, without selecting it
xSentenceCursor.gotoNextSentence( false );
// Get the XWordCursor interface of our text cursor
XWordCursor xWordCursor = (XWordCursor) UnoRuntime.queryInterface(
XWordCursor.class, mxDocCursor );
// Skip the first four words of this sentence and select the fifth
xWordCursor.gotoNextWord( false );