code: @PreDestroy
      public void disconnectLocator() throws InterruptedException,
              ServiceLocatorException {
          if (LOG.isLoggable(Level.FINE)) {
              LOG.fine("Destroy Locator client");
          }
  
          if (endpointCollector != null) {
              endpointCollector.stopScheduledCollection();
          }
          
          if (locatorClient != null) {
              locatorClient.disconnect();
              locatorClient = null;
          }
      }
docs: Should use as destroy method. Disconnects from a Service Locator server.
  All endpoints that were registered before are removed from the server.
  Set property locatorClient to null.
  
  @throws InterruptedException
  @throws ServiceLocatorException