@Override
        public String toString() {
            StringBuilder builder = new StringBuilder();
            builder.append(name);

            if ( ! properties.isEmpty() || itemReferences.get(item) != null) {
                builder.append('[');
                addPropertiesString(builder);
                builder.append(']');
            }

            if (value != null || !children.isEmpty()) {
                builder.append("{\n");
                addBody(builder);
                builder.append("}\n");
            }
            return builder.toString();
        }
Creates the textual representation for a single Item.
container-search/src/main/java/com/yahoo/prelude/query/textualrepresentation/TextualQueryRepresentation.java