public void before() throws Exception, java.lang.Exception
{
// load it into a frame
final Object object = getORB().createInstance("com.sun.star.frame.Desktop");
final XComponentLoader xComponentLoader = (XComponentLoader) UnoRuntime.queryInterface(XComponentLoader.class, object);
final XComponent loadedComponent = xComponentLoader.loadComponentFromURL("private:factory/swriter", "_blank", 0, new PropertyValue[0]);
// get the controller, which provides access to various UI operations
docModel = (XModel) UnoRuntime.queryInterface(XModel.class, loadedComponent);
}
// --------------------------------------------------------------------------------------------------------