public static String stripQuotes(String val) {
    if ((val.charAt(0) == '\'' && val.charAt(val.length() - 1) == '\'')
        || (val.charAt(0) == '\"' && val.charAt(val.length() - 1) == '\"')) {
      val = val.substring(1, val.length() - 1);
    }
    return val;
  }
Loads the storage handler (if one exists) for the given table
and invokes {@link HiveStorageHandler#configureOutputJobProperties(TableDesc, java.util.Map)}.

@param tableDesc table descriptor
ql/src/java/org/apache/hadoop/hive/ql/plan/PlanUtils.java