}
private static boolean verifyRoles(String annotationName, AnnotationProvider provider, String[] roles)
throws AnnotationNotRegisteredException {
SecurityJoinPoint roleable = AnnotationContainer.getInstance().getRoleableAnnotation(annotationName);
if (roleable == null) {
throw new AnnotationNotRegisteredException("Annotation descriptor for " + annotationName
+ " annotation is not registered!");
}
return Arrays.intersects(roleable.getRoles(provider), roles);
}