docs: public void checkAuthorization(CompositePermissionCheck compositePermissionCheck) {
      if(isAuthCheckExecuted()) {
  
        Authentication currentAuthentication = getCurrentAuthentication();
        String userId = currentAuthentication.getUserId();
  
        boolean isAuthorized = isAuthorized(compositePermissionCheck);
        if (!isAuthorized) {
  
          List<MissingAuthorization> missingAuthorizations = new ArrayList<MissingAuthorization>();
  
          for (PermissionCheck check: compositePermissionCheck.getAllPermissionChecks()) {
            missingAuthorizations.add(new MissingAuthorization(
                check.getPermission().getName(),
                check.getResource().resourceName(),
                check.getResourceId()));
          }
  
          throw new AuthorizationException(userId, missingAuthorizations);
        }
      }
    }