public static StringBuilder dumpPropMap(String header, Properties props) {
    Map<String, String> map = new HashMap<String, String>();
    for(Map.Entry<Object, Object> ent : props.entrySet()) {
      map.put(ent.getKey().toString(), ent.getValue() == null ? null : ent.getValue().toString());
    }
    return dumpPropMap(header, map);
  }
Find a jar that contains a class of the same name and which
file name matches the given pattern.

@param clazz the class to find.
@param fileNamePattern regex pattern that must match the jar full path
@return a jar file that contains the class, or null
hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/tool/TempletonUtils.java