code: static String getFallbackDomain() {
      int javaVersion = getJavaVersion();
      boolean javaHasSNI = javaVersion >= 7;
  
      final VersionInfo vi = VersionInfo.loadVersionInfo
        ("org.apache.http.client", APIClient.class.getClassLoader());
      String version = vi.getRelease();
      String[] split = version.split("\\.");
      int major = Integer.parseInt(split[0]);
      int minor = Integer.parseInt(split[1]);
      int patch = Integer.parseInt(split[2]);
      boolean apacheClientHasSNI = major > 4 ||
        major == 4 && minor > 3 ||
        major == 4 && minor == 3 && patch >= 2; // if version >= 4.3.2
  
      if (apacheClientHasSNI && javaHasSNI) {
        return "algolianet.com";
      } else {
        return "algolia.net";
      }
    }
docs: Get the appropriate fallback domain depending on the current SNI support.
  Checks Java version and Apache HTTP Client's version.
  
  @return algolianet.com if the current setup supports SNI, else algolia.net.