for (SecurityViolation securityViolation : violations)
{
((EditableAccessDecisionVoterContext) voterContext).addViolation(securityViolation);
}
}
AccessDeniedException accessDeniedException = new AccessDeniedException(violations);
ExceptionToCatchEvent exceptionToCatchEvent = new ExceptionToCatchEvent(accessDeniedException);
this.beanManager.fireEvent(exceptionToCatchEvent);
if (!exceptionToCatchEvent.isHandled())
{