*/
public boolean openConnection() throws Exception {
String unoUrl = "uno:socket,host=" + host + ",port=" + port +";urp;StarOffice.ServiceManager";
XComponentContext xLocalContext = Bootstrap.createInitialComponentContext(null);
Object connector = xLocalContext.getServiceManager().createInstanceWithContext("com.sun.star.connection.Connector", xLocalContext);
XConnector xConnector = (XConnector) UnoRuntime.queryInterface(XConnector.class, connector);
String url[] = parseUnoUrl(unoUrl);
if (null == url) {
throw new com.sun.star.uno.Exception("Couldn't parse UNO URL "+ unoUrl);
}
XConnection connection = xConnector.connect(url[0]);
Object bridgeFactory = xLocalContext.getServiceManager().createInstanceWithContext("com.sun.star.bridge.BridgeFactory", xLocalContext);
XBridgeFactory xBridgeFactory = (XBridgeFactory) UnoRuntime.queryInterface(XBridgeFactory.class, bridgeFactory);
xBridge = xBridgeFactory.createBridge("", url[1], connection ,null);
bridgeFactory = xBridge.getInstance(url[2]);
xMultiComponentFactory = (XMultiComponentFactory)UnoRuntime.queryInterface(XMultiComponentFactory.class, bridgeFactory);