private String mapString(Map<?, ?> map) {
        StringBuilder result = new StringBuilder();
        final String mapBegin = "map(";
        result.append(mapBegin);

        boolean firstTime = true;
        for (Map.Entry<?,?> entry: map.entrySet()) {
            if (!firstTime)
                result.append(' ');
            firstTime = false;

            result.append(valueString(entry.getKey())).append("=>").append(valueString(entry.getValue()));
        }

        result.append(')');
        return result.toString();
    }
Creates a detailed representation of a query tree.

@author Tony Vaagenes
container-search/src/main/java/com/yahoo/prelude/query/textualrepresentation/TextualQueryRepresentation.java