class WebClientFactoryImpl implements WebClientFactory {

  static Constructor<? extends WebClient> getClientConstructor() {
    for (String className : CLIENT_CLASS_NAMES) {
      try {
        return getClientConstructor(className);
      } catch (NoClassDefFoundError | NoSuchMethodException ignored) {
      }
    }
    
    throw new IllegalStateException("Unable to select client constructor");
  }

}