public void checkAccessRestrictionForRequestedView(Navigator navigator) {
    final View targetView = viewProvider.getView(navigator.getState());

    if (targetView != null) {
      final Collection<ConfigAttribute> attributes =
          new SecuredAnnotationSecurityMetadataSource()
              .getAttributes(
                  new SimpleMethodInvocation(
                      targetView,
                      ReflectionUtils.findMethod(
                          View.class, "enter", ViewChangeListener.ViewChangeEvent.class)));
      try {
        accessDecisionManager.decide(
            SecurityContextHolder.getContext().getAuthentication(), targetView, attributes);
      } catch (AccessDeniedException adExc) {
        // must be ignored as this exception is already handled in the AccessDecisionManager
      }
    }
  }