public boolean hasAnnotation(String annotation) {
        if (annotations == null) return false;
        return annotations.containsKey(annotation);
    }
Returns whether this has an annotation
container-search/src/main/java/com/yahoo/prelude/query/Item.java