private synchronized void retainService()

in src/main/java/org/apache/sling/installer/factories/configuration/impl/ServicesListener.java [182:194]


        private synchronized void retainService() {
            if (this.reference == null) {
                this.reference = bundleContext.getServiceReference(this.serviceName);
                if (this.reference != null) {
                    this.service = bundleContext.getService(this.reference);
                    if (this.service == null) {
                        this.reference = null;
                    } else {
                        notifyChange();
                    }
                }
            }
        }