final ServiceReference reference = serviceRegistration.getReference();
final IContainer aContainer = (DnsSdDiscoveryContainerAdapter) context.getService(reference);
serviceRegistration.unregister();
final IContainer container = (IContainer) aContainer.getAdapter(IContainer.class);
container.dispose();
container.disconnect();
}
/**
* A ManagedServiceFactory capable to handle DnsSdDiscoveryContainerAdapters