XComponentLoader xLoader = (XComponentLoader)UnoRuntime.queryInterface( XComponentLoader.class, xDesktop );
PropertyValue[] loadArgs = new PropertyValue[]
{
new PropertyValue("Model", -1, xTextDocument, com.sun.star.beans.PropertyState.DIRECT_VALUE)
};
xLoader.loadComponentFromURL("private:object", "_blank", 0, loadArgs );
// remember some things for later usage
xFrame = xTextDocument.getCurrentController().getFrame();
xComponent = (XComponent)UnoRuntime.queryInterface(XComponent.class, xTextDocument);
}