in src/main/java/org/apache/sling/rewriter/impl/HashingServiceTrackerCustomizer.java [136:147]
public void removedService(final ServiceReference<T> reference, final T service) {
final String type = this.getType(reference);
if ( type != null ) {
synchronized ( this ) {
final Entry<T> entry = this.services.get(type);
if ( entry != null ) {
entry.remove(reference);
}
}
this.context.ungetService(reference);
}
}