public static String[] getTrimmedStringsVar(Configuration conf, ConfVars var) {
    assert var.defaultVal.getClass() == String.class;
    String[] result = conf.getTrimmedStrings(var.varname, (String[]) null);
    if (result != null) {
      return result;
    }
    if (var.hiveName != null) {
      result = conf.getTrimmedStrings(var.hiveName, (String[]) null);
      if (result != null) {
        return result;
      }
    }
    return org.apache.hadoop.util.StringUtils.getTrimmedStrings((String) var.getDefaultVal());
  }
Get values from comma-separated config, to an array after extracting individual values.
@param conf Configuration to retrieve it from
@param var variable to retrieve
@return Array of String, containing each value from the comma-separated config,
 or default value if value not in config file
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java