code: public CmsResource ensureModelFolder(CmsResource rootResource) throws CmsException {
  
          String modelFolderPath = CmsStringUtil.joinPaths(m_adeConfig.getBasePath(), ".content/.templates");
  
          try {
              CmsResource result = m_cms.readFolder(modelFolderPath);
              return result;
          } catch (CmsVfsResourceNotFoundException e) {
              CmsProperty searchExclude = new CmsProperty(CmsPropertyDefinition.PROPERTY_SEARCH_EXCLUDE, "all", null);
              CmsResource result = m_cms.createResource(
                  modelFolderPath,
                  getType(CmsResourceTypeFolder.getStaticTypeName()),
                  null,
                  Arrays.asList(searchExclude));
              tryUnlock(result);
              return result;
          }
  
      }
docs: Tries to either read or create the default folder for model pages in the current sitemap, and returns it.<p>
  
  @param rootResource the root of the sitemap
  
  @return the folder resource
  
  @throws CmsException if something goes wrong