AddonRegistry registry = BeanManagerUtils.getContextualInstance(manager, AddonRegistry.class);
Object result = null;
for (Addon addon : registry.getAddons(ALL_STARTED))
{
ServiceRegistry serviceRegistry = addon.getServiceRegistry();
if (serviceRegistry.hasService(serviceType))
{
ExportedInstance<?> instance = serviceRegistry.getExportedInstance(serviceType);
if (instance != null)
{
if (instance instanceof ExportedInstanceImpl)
{
// FIXME remove the need for this implementation coupling