code: public ReleasableProxyTarget locateProxyTarget() {
          ServiceReference<?>[] references = fetchReferences();
          if (references != null) {
              // Sort the references...
              Arrays.sort(references);
              // Fetch the first (if any)...
              for (final ServiceReference<?> reference : references) {
                  final Object service = bundleContext.getService(reference);
                  if (service == null) {
                      // The service is gone while we where iterating over the service references...
                      continue;
                  }
                  // And return a releasable proxy target...
                  return new ReleasableProxyTargetImplementation(service, reference);
              }
          }
          throw new IllegalStateException("can't find any service matching objectClass = "
                  + serviceInterface + " and filter = " + filterString);
      }
docs: <p>locateProxyTarget.</p>
  
  @return a {@link org.ops4j.pax.wicket.spi.ReleasableProxyTarget} object.