XInterface oObj = null;
Object instance = null;
log.println( "creating a test environment" );
try {
oObj = SOF.createBookmark( xTextDoc );
SOF.insertTextContent( xTextDoc, (XTextContent) oObj );
instance = SOF.createInstance(xTextDoc,"com.sun.star.text.Bookmark");
} catch ( com.sun.star.uno.Exception e ) {
e.printStackTrace( log );
throw new StatusException( "Couldn't create Bookmark", e );
}