docs: public boolean hasRoleForUser(String name, String role) {
          List<String> roles = getRolesForUser(name);
  
          boolean hasRole = false;
          for (String r : roles) {
              if (r.equals(role)) {
                  hasRole = true;
                  break;
              }
          }
  
          return hasRole;
      }