String getFileLocation() {
    for (String location : locations) {
      if (new File(location).exists()) {
        return location;
      }
    }
    return null;
  }
This class implements HS2ConnectionFileParser for the user-specific connection configuration
file named beeline-hs2-connection.xml. The class looks for this file in
${user.home}/.beeline, ${HIVE_CONF_DIR} or /etc/conf/hive in that order and uses the first file
found in the above locations.
beeline/src/java/org/apache/hive/beeline/hs2connection/UserHS2ConnectionFileParser.java