public Boolean getBoolean(String key) {
        Object o = getMap().get(key);
        if ( ! (o instanceof Boolean)) {
            return null;
        } else {
            return (Boolean)o;
        }
    }
Helper function to get a Boolean annotation.
container-search/src/main/java/com/yahoo/text/interpretation/Annotations.java