static String uriAnnotations(UriItem item) {
            if (item.hasStartAnchor() == item.isStartAnchorDefault() &&
                item.hasEndAnchor() == item.isEndAnchorDefault())
                return "";

            StringBuilder b = new StringBuilder();
            b.append("{");
            if (item.hasStartAnchor() != item.isStartAnchorDefault()) {
                b.append(START_ANCHOR + ": " + item.hasStartAnchor());
            }
            if (item.hasEndAnchor() != item.isEndAnchorDefault()) {
                if (b.length() > 2)
                    b.append(", ");
                b.append(END_ANCHOR + ": " + item.hasEndAnchor());
            }
            b.append("}");
            return b.toString();
        }
Serialize Vespa query trees to YQL+ strings.

@author Steinar Knutsen
container-search/src/main/java/com/yahoo/search/yql/VespaSerializer.java