XBridgeFactory xBridgeFactory = (XBridgeFactory) UnoRuntime.queryInterface(
XBridgeFactory.class , x );
// create a nameless bridge with no instance provider
// using the middle part of the uno-url
XBridge bridge = xBridgeFactory.createBridge( "" , a[1] , connection , null );
// query for the XComponent interface and add this as event listener
XComponent xComponent = (XComponent) UnoRuntime.queryInterface(
XComponent.class, bridge );
xComponent.addEventListener( this );