code: public CmsResource createPageInModelFolder(String name, String description, CmsUUID copyId) throws CmsException {
  
          CmsResource modelFolder = ensureModelFolder(m_rootResource);
          String pattern = "templatemodel_%(number).html";
          String newFilePath = OpenCms.getResourceManager().getNameGenerator().getNewFileName(
              m_cms,
              CmsStringUtil.joinPaths(modelFolder.getRootPath(), pattern),
              4);
          CmsProperty titleProp = new CmsProperty(CmsPropertyDefinition.PROPERTY_TITLE, name, null);
          CmsProperty descriptionProp = new CmsProperty(CmsPropertyDefinition.PROPERTY_DESCRIPTION, description, null);
          CmsResource newPage = null;
          if (copyId == null) {
              newPage = m_cms.createResource(
                  newFilePath,
                  getType(CmsResourceTypeXmlContainerPage.getStaticTypeName()),
                  null,
                  Arrays.asList(titleProp, descriptionProp));
          } else {
              CmsResource copyResource = m_cms.readResource(copyId);
              m_cms.copyResource(copyResource.getRootPath(), newFilePath);
              m_cms.writePropertyObject(newFilePath, titleProp);
              m_cms.writePropertyObject(newFilePath, descriptionProp);
  
              newPage = m_cms.readResource(newFilePath);
          }
          tryUnlock(newPage);
          return newPage;
      }
docs: Creates a new potential model page in the default folder for new model pages.<p>
  
  @param name the title for the model page
  @param description the description for the model page
  @param copyId structure id of the resource to use as a model for the model page, if any (may be null)
  
  @return the created resource
  @throws CmsException if something goes wrong