code: public static GenericResponseBuilderFactory newInstance() {
      ServiceLoader<GenericResponseBuilderFactory> clientBuilderFactoryLoader =
          ServiceLoader.load(GenericResponseBuilderFactory.class);
  
      Iterator<GenericResponseBuilderFactory> iterator = clientBuilderFactoryLoader.iterator();
  
      if (!iterator.hasNext()) {
        throw new IllegalStateException(
            "An implementation of GenericResponseBuilderFactory was not found");
      }
  
      return iterator.next();
    }
docs: Creates a new instance of {@link GenericResponseBuilderFactory} using {@link ServiceLoader}.