docs: public void reinitServiceDirectoryManagerFactory(ServiceDirectoryManagerFactory factory) throws ServiceException{
          if (factory == null) {
              throw new IllegalArgumentException("The ServiceDirectoryManagerFactory cannot be NULL.");
          }
  
          synchronized(this){
              if(isShutdown){
                  ServiceDirectoryError error = new ServiceDirectoryError(ErrorCode.SERVICE_DIRECTORY_IS_SHUTDOWN);
                  throw new ServiceException(error);
              }
  
              if (this.directoryManagerFactory != null) {
  
                  if (directoryManagerFactory instanceof Closable) {
                      ((Closable) directoryManagerFactory).stop();
                  }
  
                  LOGGER.info("Resetting ServiceDirectoryManagerFactory, old="
                          + this.directoryManagerFactory.getClass().getName()
                          + ", new=" + factory.getClass().getName() + ".");
  
                  this.directoryManagerFactory = factory;
              } else {
                  this.directoryManagerFactory = factory;
                  LOGGER.info("Setting ServiceDirectoryManagerFactory,  factory="
                          + factory.getClass().getName() + ".");
              }
              this.directoryManagerFactory.initialize(this);
          }
      }