code: public boolean unregister() {
      if (serviceRegistrationHandle.isPresent()) {
        registrar.unregister(serviceRegistrationHandle.get());
        serviceRegistrationHandle = Optional.absent();
        return true;
      }
      return false;
    }
docs: Unregister a set of service endpoints previously registered.
  
  @return boolean true if service registration handle was present, false otherwise