docs: public static URI toUri(String endpoint, ClientConfiguration config) {
  
          if (config == null) {
              throw new IllegalArgumentException("ClientConfiguration cannot be null");
          }
          return toUri(endpoint, config.getProtocol());
      }