public void onDisposed()

in src/main/java/org/apache/sling/models/impl/injectors/OSGiServiceInjector.java [203:213]


        public void onDisposed() {
            if (refs != null) {
                for (ServiceReference<?> ref : refs) {
                    try {
                        context.ungetService(ref);
                    } catch (IllegalStateException exception) {
                        // SLING-11132 - This exception is expected when BundleContext is no longer valid.
                    }
                }
            }
        }