Discovery service depends on bridge?

Hi, my discovery depends on a special controller be present, this is implemented as a bridge in my bindings. I have found out that there are two possibility to register a discovery:

A: by XML
B: programmatically by registering the service when the bridge is initialized:
discoveryService = new MyDeviceDiscoveryService(MyControllerHandler.this); bundleContext.registerService(DiscoveryService.class.getName(), discoveryService, new Hashtable<String, Object>());
This resulted in a instantiation problem (registerService tried to instantiate an new Object of the service), finally I had to delay the registering, I assume it is a timing problem because the bridge is not fully registered already, however this is not my problem.

In the end I like the approach A more. But how to reference the bridge then?

Thanks
Thomas