<p>locateProxyTarget.</p>

@return a {@link org.ops4j.pax.wicket.spi.ReleasableProxyTarget} object.
198212
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);
    }
393191
public final J4pClientBuilder useProxyFromEnvironment(){
        Map<String, String> env = System.getenv();
        for (String key : env.keySet()) {
            if (key.equalsIgnoreCase("http_proxy")){
                httpProxy = parseProxySettings(env.get(key));
                break;
            }
        }
        return this;
    }
905238
@SuppressWarnings("unchecked")
	public static <T> T stripProxy(@Nullable final WrappingProxy<T> wrappingProxy) {
		if (wrappingProxy == null) {
			return null;
		}

		T delegate = wrappingProxy.getWrappedDelegate();

		int numProxiesStripped = 0;
		while (delegate instanceof WrappingProxy) {
			throwIfSafetyNetExceeded(++numProxiesStripped);
			delegate = ((WrappingProxy<T>) delegate).getWrappedDelegate();
		}

		return delegate;
	}
791010
public Object getProxyTarget(){
		try {
			return Proxy.getInvocationHandler(this.connection).invoke(null, this.getClass().getMethod("getProxyTarget"), null);
		} catch (Throwable t) {
			throw new RuntimeException("BoneCP: Internal error - transaction replay log is not turned on?", t);
		}
	}
1368597
public com.google.api.ads.admanager.axis.v201811.TargetPlatform getTargetPlatform() {
        return targetPlatform;
    }
1324869
public Location getExceptionThrowerLocation(Edge exceptionEdge) {
        if (!exceptionEdge.isExceptionEdge()) {
            throw new IllegalArgumentException();
        }

        InstructionHandle handle = exceptionEdge.getSource().getExceptionThrower();
        if (handle == null) {
            throw new IllegalStateException();
        }

        BasicBlock basicBlock = (handle.getInstruction() instanceof ATHROW) ? exceptionEdge.getSource()
                : getSuccessorWithEdgeType(exceptionEdge.getSource(), EdgeTypes.FALL_THROUGH_EDGE);

        if (basicBlock == null && removedEdgeList != null) {
            // The fall-through edge might have been removed during
            // CFG pruning. Look for it in the removed edge list.
            for (Edge removedEdge : removedEdgeList) {
                if (removedEdge.getType() == EdgeTypes.FALL_THROUGH_EDGE
                        && removedEdge.getSource() == exceptionEdge.getSource()) {
                    basicBlock = removedEdge.getTarget();
                    break;
                }
            }
        }

        if (basicBlock == null) {
            throw new IllegalStateException("No basic block for thrower " + handle + " in " + this.methodGen.getClassName() + "."
                    + this.methodName + " : " + this.methodGen.getSignature());
        }

        return new Location(handle, basicBlock);
    }
161922
@Nullable
    public final Controller getTargetController() {
        if (targetInstanceId != null) {
            return router.getRootRouter().getControllerWithInstanceId(targetInstanceId);
        }
        return null;
    }
1262902
public ProxyAuthentication getProxyAuthentication() {
		// convert authentication to layerAuthentication so we only use one
		// TODO Remove when removing deprecated authentication field.
		if (layerAuthentication == null && authentication != null) {
			layerAuthentication = new LayerAuthentication();
			layerAuthentication.setAuthenticationMethod(LayerAuthenticationMethod.valueOf(authentication
					.getAuthenticationMethod().name()));
			layerAuthentication.setPassword(authentication.getPassword());
			layerAuthentication.setPasswordKey(authentication.getPasswordKey());
			layerAuthentication.setRealm(authentication.getRealm());
			layerAuthentication.setUser(authentication.getUser());
			layerAuthentication.setUserKey(authentication.getUserKey());
		}
		// TODO Remove when removing deprecated authentication field.
		return layerAuthentication;
	}
750953
public String getTargetQMgr()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
    {
      SibTr.entry(tc, "getTargetQMgr");
      SibTr.exit(tc, "getTargetQMgr", targetQMgr);
    }
    return targetQMgr;
  }
1371204
public ControllableProxySubscription getMatchspaceSub()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
    {
      SibTr.entry(tc, "getMatchspaceSub");
      SibTr.exit(tc, "getMatchspaceSub", _controllableProxySubscription);
    }
    return _controllableProxySubscription;
  }
1360606
@Override
    public Class<?> getProxyClass() {
        if (proxyClass != null) {
            return proxyClass;
        }
        if (generic) {
            return GenericService.class;
        }
        try {
            if (StringUtils.isNotBlank(interfaceId)) {
                this.proxyClass = ClassUtils.forName(interfaceId);
                if (!proxyClass.isInterface()) {
                    throw ExceptionUtils.buildRuntime("consumer.interface",
                        interfaceId, "interfaceId must set interface class, not implement class");
                }
            } else {
                throw ExceptionUtils.buildRuntime("consumer.interface",
                    "null", "interfaceId must be not null");
            }
        } catch (RuntimeException t) {
            throw new IllegalStateException(t.getMessage(), t);
        }
        return proxyClass;
    }
441049
@Override
    public TargetStreamControl getControlAdapter()
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "getControlAdapter");

        if (targetStreamControl == null)
            targetStreamControl =
                            new TargetStreamControl(remoteEngineUUID, this, streamSet.getStreamID(),
                                            getReliability(), getPriority());

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(tc, "getControlAdapter", targetStreamControl);
        return targetStreamControl;
    }
872435
public java.util.List<TargetLocation> getTargetLocations() {
        if (targetLocations == null) {
            targetLocations = new com.amazonaws.internal.SdkInternalList<TargetLocation>();
        }
        return targetLocations;
    }
509962
public com.google.protobuf.ByteString
      getTargetDirectoryBytes() {
    java.lang.Object ref = targetDirectory_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      targetDirectory_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }
1027496
public HttpHost getProxy() {
        String host = Config.getProperty(Config.PROXY_HOST);
        String port = Config.getProperty(Config.PROXY_PORT);
        HttpHost proxy = null;
        if (StringUtils.hasText(host) && StringUtils.hasText(port)) {
            proxy = new HttpHost(host, Integer.parseInt(port));
        }
        return proxy;
    }
984762
public static WrapperProxyState getWrapperProxyState(Object proxy)
    {
        // A business interface proxy.
        if (proxy instanceof BusinessLocalWrapperProxy)
        {
            return ((BusinessLocalWrapperProxy) proxy).ivState;
        }

        // An EJBLocalHome or EJBLocalObject proxy.
        if (proxy instanceof EJSLocalWrapperProxy)
        {
            return ((EJSLocalWrapperProxy) proxy).ivState;
        }

        // A no-interface view proxy.
        if (proxy instanceof LocalBeanWrapperProxy)
        {
            return EJSWrapperCommon.getLocalBeanWrapperProxyState((LocalBeanWrapperProxy) proxy);
        }

        if (proxy instanceof WrapperProxy)
        {
            // Something implemented WrapperProxy without updating this method.
            throw new IllegalStateException(Util.identity(proxy));
        }

        // The caller passed something that was not a WrapperProxy.
        throw new IllegalArgumentException(Util.identity(proxy));
    }
1149572
public TargetProtocolItemStream getTargetProtocolItemStream()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
    {
      SibTr.entry(tc, "getTargetProtocolItemStream");
      SibTr.exit(tc, "getTargetProtocolItemStream", _targetProtocolItemStream);	
    }
    return _targetProtocolItemStream;
  }