code: private void index(Set<PermissionBean> permissions) {
          for (PermissionBean permissionBean : permissions) {
              PermissionType permissionName = permissionBean.getName();
              String orgQualifier = permissionBean.getOrganizationId();
              String qualifiedPermission = createQualifiedPermissionKey(permissionName, orgQualifier);
              organizations.add(orgQualifier);
              qualifiedPermissions.add(qualifiedPermission);
              Set<String> orgs = permissionToOrgsMap.get(permissionName);
              if (orgs == null) {
                  orgs = new HashSet<>();
                  permissionToOrgsMap.put(permissionName, orgs);
              }
              orgs.add(orgQualifier);
          }
      }
docs: Index the permissions.
  @param bean