private void dumpAnnotation(StringBuilder sb, Annotations annotations) {
        if (annotations.getMap().size() > 0) {
            sb.append(" : {");
            Iterator<Map.Entry<String,Object>> valueIterator = annotations.getMap().entrySet().iterator();
            while(valueIterator.hasNext()) {
                Map.Entry<String,Object> value = valueIterator.next();
                sb.append(value.getKey()).append(" : ").append(value.getValue());
                if(valueIterator.hasNext()) {
                    sb.append(", ");
                }
            }
            sb.append("}");
        }
    }
Returns all spans that consists of the term given. If no span with that term exists,
the empty list is returned.
container-search/src/main/java/com/yahoo/text/interpretation/Interpretation.java