public static String quote(String stmt, boolean needsQuotedIdentifier, String quoteCharacter) {
    stmt = stmt.replace("<q>", needsQuotedIdentifier ? quoteCharacter : "");
    stmt = stmt.replace("<qa>", quoteCharacter);
    return stmt;
  }
Execute a given metastore script. This default version uses sqlline to execute the files,
which requires only running one file.  Subclasses can use other executors.
@param scriptDir directory script is in
@param scriptFile file in the directory to run
@throws IOException if it cannot read the file or directory
@throws HiveMetaException default implementation never throws this
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/tools/schematool/MetastoreSchemaTool.java