code: private List<ServiceInformation> getServiceInformations(URI location, final Map<String, String> params)
              throws IOException {
          final ReadOnlyDiscoveryClient discoveryClient = getDiscoveryClient(params);
  
          final String serviceType = params.get("serviceType");
  
          final List<ServiceInformation> services;
  
          if (serviceType != null) {
              services = discoveryClient.findAllServiceInformation(location.getHost(), serviceType);
          } else {
              services = discoveryClient.findAllServiceInformation(location.getHost());
          }
          return services;
      }
docs: Find and return applicable services for a given connection