@Override
public Object addingService(ServiceReference reference) {
Object service = context.getService(reference);
if (service instanceof ValidatorProvider) {
ValidatorProvider provider = (ValidatorProvider) service;
providers.put(reference, provider);
return service;
} else {
context.ungetService(reference);
return null;