docs: @Override
      public void updateService(ProvidedServiceInstance serviceInstance)
              throws ServiceException {
          if(! isStarted){
              ServiceDirectoryError error = new ServiceDirectoryError(ErrorCode.SERVICE_DIRECTORY_MANAGER_FACTORY_CLOSED);
              throw new ServiceException(error);
          }
          if(serviceInstance == null){
              throw new IllegalArgumentException("The ServiceInstance can not be null.");
          }
  
          ErrorCode code = ServiceInstanceUtils.validateProvidedServiceInstance(serviceInstance);
          if(! code.equals(ErrorCode.OK)){
              ServiceDirectoryError error = new ServiceDirectoryError(code);
              throw new ServiceException(error);
          }
  
          getRegistrationService().updateService(serviceInstance);
  
      }