in src/main/java/org/apache/sling/scripting/core/impl/BindingsValuesProvidersByContextImpl.java [237:253]
public void removedService(ServiceReference<S> reference, T service) {
if (bundleContext == null) {
synchronized (pendingRefs) {
pendingRefs.remove(reference);
}
return;
}
new ContextLoop() {
@Override
protected void applyInContext(ContextBvpCollector c) {
c.removedService(reference);
if (eventAdmin != null) {
eventAdmin.postEvent(newEvent(TOPIC_REMOVED, reference));
}
}
}.apply(reference);
}