code: public ServerCnxnFactory getServerFactory() {
          if (serverFactory == null) {
              try {
                  serverFactory = new NIOServerCnxnFactory();
                  serverFactory.configure(new InetSocketAddress(port), 5000);
              } catch (IOException e) {
                  throw new CitrusRuntimeException("Failed to create default zookeeper server factory", e);
              }
          }
  
          return serverFactory;
      }
docs: Gets the value of the serverFactory property.
  
  @return the serverFactory