docs: private void addSecurityRoleChecksToModel(PortletRequest req, Map<String, Object> model) {
          PortletPreferences prefs = req.getPreferences();
          String[] securityRoles = prefs.getValues(PREF_SECURITY_ROLE_NAMES, new String[] {});
          for (int i = 0; i < securityRoles.length; i++) {
              model.put(
                      "is" + securityRoles[i].replace(" ", "_"), req.isUserInRole(securityRoles[i]));
          }
      }