private boolean isSourceCMD(String cmd) {
    if (cmd == null || cmd.isEmpty())
      return false;
    String[] tokens = tokenizeCmd(cmd);
    return tokens[0].equalsIgnoreCase("source");
  }
Extract and clean up the first command in the input.
beeline/src/java/org/apache/hive/beeline/Commands.java