code: public void registerService(ProvidedServiceInstance serviceInstance, ServiceInstanceHealth registryHealth) {
          registerService(serviceInstance);
          getCacheServiceInstances().put(new ServiceInstanceToken(serviceInstance.getServiceName(), serviceInstance.getProviderId()),
                  new InstanceHealthPair(registryHealth));
      }
docs: Register a ProvidedServiceInstance with the OperationalStatus and the ServiceInstanceHealth callback.
  
  @param serviceInstance
  the ProvidedServiceInstance.
  @param registryHealth
  the ServiceInstanceHealth callback.