Object instance = null;
SOfficeFactory SOF = SOfficeFactory.getFactory((XMultiServiceFactory)tParam.getMSF());
log.println( "creating a test environment" );
try {
xTC = SOF.createIndex(xTextDoc, "com.sun.star.text.DocumentIndex");
instance = SOF.createIndex(xTextDoc, "com.sun.star.text.DocumentIndex");
}
catch ( com.sun.star.uno.Exception e) {
e.printStackTrace(log);
throw new StatusException("Couldn't create the Index", e);