docs: public void setType(String typeName) {
  
          try {
              try {
                  m_type = OpenCms.getResourceManager().getResourceType(typeName);
              } catch (CmsLoaderException e) {
                  // TODO: what happens if the resource type is a specialized folder and is not configured??
                  int plainId;
                  try {
                      plainId = OpenCms.getResourceManager().getResourceType(
                          CmsResourceTypePlain.getStaticTypeName()).getTypeId();
                  } catch (CmsLoaderException e1) {
                      // this should really never happen
                      plainId = CmsResourceTypePlain.getStaticTypeId();
                  }
                  m_type = OpenCms.getResourceManager().getResourceType(plainId);
              }
              if (m_type.isFolder()) {
                  // ensure folders end with a "/"
                  if (!CmsResource.isFolder(m_destination)) {
                      m_destination += "/";
                  }
              }
          } catch (Throwable e) {
              setThrowable(e);
          }
      }