public void removedService(ServiceReference reference, Object service) {
long serviceId = getServiceReferenceId(reference);
try {
String objectName = createObjectName(objectNamePrefix, serviceId);
ServiceAbstractMBean serviceMBean = compendiumServices.get(objectName);
server.unregisterMBean(new ObjectName(objectName));
serviceMBean.uninit();
info("MBean unregistered for " + beanClass.getSimpleName() + " service.id: " + serviceId, null);
} catch (Exception e) {
warning("Unable to unregister MBean for " + beanClass.getSimpleName() + " service.id: " + serviceId, e);
}