log.println("creating test environment");
XInterface oObj = null;
URL dispatchURL = null;
try {
XMultiServiceFactory xMSF = tParam.getMSF();
SOfficeFactory SOF = null;
SOF = SOfficeFactory.getFactory( xMSF );
String docPath = util.utils.getFullTestURL( "ExampleSpreadSheetLatest.sxc" );
XComponent doc = SOF.loadDocument( docPath );
XModel model = ( XModel ) UnoRuntime.queryInterface( XModel.class,
doc );
XFrame frame = model.getCurrentController().getFrame();
oObj = ( XInterface )xMSF.createInstanceWithArguments( "com.sun.star.comp.ScriptProtocolHandler", new Object[] { frame } );
XURLTransformer xParser=(XURLTransformer)
UnoRuntime.queryInterface(XURLTransformer.class,
tParam.getMSF().createInstance
("com.sun.star.util.URLTransformer"));