references.put(ref, reg);
notify(new RegistryEvent(this, reg, RegistryEvent.Type.ADDED));
}
public void unregisterService(ServiceReference ref) {
RegistryServiceReference reg = references.remove(ref);
notify(new RegistryEvent(this, reg, RegistryEvent.Type.REMOVED));
}