for (Object permissionConstant : AnnotationUtil.getPermissionValues(customNamedCheck)) {
String beanName = nameFactory.generatePermissionBeanName(((NamedPermission) permissionConstant).name());
GenericPermissionVoter voter = CDIUtil.getContextualReferenceByName(beanmanager, beanName
, GenericPermissionVoter.class);
result.addAll(voter.checkPermission(invocationContext));
}
return result;
}