code: public static String stringForMap(Map<Object, Object> map) {
          StringBuilder sbOutput = new StringBuilder();
          if (map == null) {
              sbOutput.append("\tNULL");
          } else {
              for (Entry<Object, Object> entry : map.entrySet()) {
                  sbOutput.append('\t').append(entry).append('\n');
              }
          }
          return sbOutput.toString();
      }
docs: Utility method to extract a string representing the contents of a map.
  This is currently used by various methods as part of debug tracing.
  
  @param map
  @return string representing contents of Map