docs: protected static void checkIsFolder(CmsResource resource) throws CmsException {
  
          if (!isFolder(resource)) {
              throw new CmsIllegalArgumentException(
                  Messages.get().container(
                      org.opencms.file.Messages.ERR_REWRITE_LINKS_ROOT_NOT_FOLDER_1,
                      resource.getRootPath()));
          }
      }