Application application = Application.get();
// ProxyEndpointServiceProvider.PROXY_SERVICE_TYPE is the extension ID
List<Object> proxyServiceProviders = application.findServices(ProxyEndpointServiceProvider.PROXY_SERVICE_TYPE);
if(proxyServiceProviders != null && !proxyServiceProviders.isEmpty()){
for(Object o : proxyServiceProviders){
ProxyEndpointServiceProvider pvdr = (ProxyEndpointServiceProvider)o;
proxyEndpointService = pvdr.createProxyEndpointService(serviceType);
if(proxyEndpointService != null){
break;
}
}
}