static void printEntities(LogHelper console, Set<?> entities, String prefix) {
    List<String> strings = new ArrayList<String>();
    for (Object o : entities) {
      strings.add(o.toString());
    }
    Collections.sort(strings);
    for (String s : strings) {
      console.printInfo(prefix + s, false);
    }
  }
Implementation of a pre execute hook that simply prints out its parameters to
standard output.
ql/src/java/org/apache/hadoop/hive/ql/hooks/PreExecutePrinter.java