public OsType getMatchingOs(String osName) {
    osName = osName.toLowerCase();
    if (osName.contains("win")) {
      return OsType.WINDOWS;
    }
    if (osName.contains("mac")) {
      return OsType.MAC;
    }
    if (osName.contains("nix") || osName.contains("nux") || osName.contains("aix")) {
      return OsType.LINUX;
    }
    return OsType.UNKNOWN;
  }
Waits for a server response until the given timeout value in milliseconds.
Returns null if timeout.
jdbc/src/java/org/apache/hive/jdbc/saml/HiveJdbcBrowserClient.java