docs: private boolean hasPermission(IPerson person, String permission, String target) {
          EntityIdentifier ei = person.getEntityIdentifier();
          IAuthorizationPrincipal ap =
                  AuthorizationServiceFacade.instance().newPrincipal(ei.getKey(), ei.getType());
          return ap.hasPermission(IPermission.PORTAL_GROUPS, permission, target);
      }