@Override
    public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) {
        return annotations.stream().anyMatch(annotationType::isInstance);
    }
Wraps annotation types to facilitate additional annotations for CDI

@param <T> type of annotated class
support/cdi/src/main/java/org/apache/shiro/cdi/AnnotatedTypeWrapper.java