docs: public static void checkResources(CmsObject cms, List<String> resources) throws CmsIllegalArgumentException {
  
          StringBuffer result = new StringBuffer(128);
          ListIterator<String> it = resources.listIterator();
          while (it.hasNext()) {
              String resourcePath = it.next();
              try {
                  CmsResource resource = cms.readResource(resourcePath);
                  // append folder separator, if resource is a folder and does not and with a slash
                  if (resource.isFolder() && !resourcePath.endsWith("/")) {
                      it.set(resourcePath + "/");
                  }
              } catch (@SuppressWarnings("unused") CmsException e) {
                  result.append(resourcePath);
                  result.append('\n');
              }
          }
          if (result.length() > 0) {
              throw new CmsIllegalArgumentException(
                  Messages.get().container(Messages.ERR_MISSING_RESOURCES_1, result.toString()));
          }
      }