private void enforce(FacesContext context, UIViewRoot viewRoot, List<? extends Annotation> annotations) {
if (annotations == null || annotations.isEmpty()) {
log.debug("Annotations is null/empty");
return;
}
AuthorizationCheckEvent event = new AuthorizationCheckEvent(annotations);
authorizationCheckEvent.fire(event);
if (!event.isPassed()) {
if (!identity.isLoggedIn()) {
log.debug("Access denied - not logged in");
redirectToLoginPage(context, viewRoot);
return;
} else {