//-------------------------------------------< ServiceTrackerCustomizer >---
@Override
public Object addingService(ServiceReference reference) {
Object service = super.addingService(reference);
if (service instanceof SecurityConfiguration) {
SecurityConfiguration sc = (SecurityConfiguration) service;
if (sc instanceof TokenConfiguration) {
tokenConfiguration.services.add((TokenConfiguration) sc);
} else {
synchronized (this) {
serviceMap.put(sc.getName(), sc);
}
}
if (service instanceof ConfigurationBase) {
((ConfigurationBase) service).setSecurityProvider(this);