code: public void addRole(Role role) {
          apiRoles.add(role);
          roles.add(role.getName());
          for (org.seedstack.seed.security.Permission permission : role.getPermissions()) {
              if (!role.getScopes().isEmpty()) {
                  for (Scope scope : role.getScopes()) {
                      ScopePermission sp = new ScopePermission(permission.getPermission(), scope);
                      scopePermissions.add(sp);
                  }
              } else {
                  stringPermissions.add(permission.getPermission());
              }
          }
      }
docs: Adds a role and its permissions to the authorization info.
  
  @param role the role to add.