docs: public CmsContentFolderDescriptor parseFolderOrName(String basePath, I_CmsXmlContentLocation location)
      throws CmsException {
  
          if (location == null) {
              return null;
          }
          I_CmsXmlContentValueLocation nameLoc = location.getSubValue(N_NAME);
          I_CmsXmlContentValueLocation pathLoc = location.getSubValue(N_PATH);
          I_CmsXmlContentValueLocation pageRelativeLoc = location.getSubValue(N_PAGE_RELATIVE);
          if (nameLoc != null) {
              String name = nameLoc.asString(m_cms);
              return new CmsContentFolderDescriptor(
                  basePath == null ? null : CmsStringUtil.joinPaths(basePath, CmsADEManager.CONTENT_FOLDER_NAME),
                  name);
          } else if (pathLoc != null) {
              String path = pathLoc.asString(m_cms);
              CmsResource folder = m_cms.readResource(path);
              return new CmsContentFolderDescriptor(folder);
          } else if (pageRelativeLoc != null) {
              return CmsContentFolderDescriptor.createPageRelativeFolderDescriptor();
          } else {
              return null;
          }
      }