object = mServiceFactory.createInstance( "com.sun.star.frame.Frame");
mFrame = (XFrame)UnoRuntime.queryInterface( XFrame.class, object );
mFrame.initialize(window);
mFrame.setName( mFrame.toString() );
mDesktop = mServiceFactory.createInstance( "com.sun.star.frame.Desktop");
XFrames xFrames = ( (XFramesSupplier)UnoRuntime.queryInterface(
XFramesSupplier.class, mDesktop ) ).getFrames();
xFrames.append( mFrame );
// Initializes the slot command execution environment.
object = mServiceFactory.createInstance( "com.sun.star.util.URLTransformer");
mURLTransformer = (XURLTransformer)UnoRuntime.queryInterface(
XURLTransformer.class, object);