protected void initialize( TestParameters tParam, PrintWriter log ) {
XMultiServiceFactory msf = (XMultiServiceFactory) tParam.getMSF();
SOfficeFactory SOF = SOfficeFactory.getFactory( msf );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
} catch ( com.sun.star.uno.Exception e ) {
e.printStackTrace( log );
throw new StatusException( "Couldn't create document", e );
}
}