code: public void create(
          CmsClientSitemapEntry newEntry,
          CmsUUID parentId,
          int resourceTypeId,
          CmsUUID copyResourceId,
          String parameter,
          boolean isNewSitemap) {
  
          assert (getEntry(newEntry.getSitePath()) == null);
  
          CmsSitemapChange change = new CmsSitemapChange(null, newEntry.getSitePath(), ChangeType.create);
          change.setDefaultFileId(newEntry.getDefaultFileId());
          change.setParentId(parentId);
          change.setName(newEntry.getName());
          change.setPosition(newEntry.getPosition());
          change.setOwnInternalProperties(newEntry.getOwnProperties());
          change.setDefaultFileInternalProperties(newEntry.getDefaultFileProperties());
          change.setTitle(newEntry.getTitle());
          change.setCreateParameter(parameter);
          change.setNewResourceTypeId(resourceTypeId);
          if (isNewSitemap) {
              change.setCreateSitemapFolderType(newEntry.getResourceTypeName());
          }
          change.setNewCopyResourceId(copyResourceId);
          if (isDetailPage(newEntry)) {
              CmsDetailPageTable table = getDetailPageTable().copy();
              if (!table.contains(newEntry.getId())) {
                  CmsDetailPageInfo info = new CmsDetailPageInfo(
                      newEntry.getId(),
                      newEntry.getSitePath(),
                      newEntry.getDetailpageTypeName(),
                      newEntry.getVfsModeIcon());
                  table.add(info);
              }
              change.setDetailPageInfos(table.toList());
          }
          CmsSitemapClipboardData data = getData().getClipboardData().copy();
          data.addModified(newEntry);
          change.setClipBoardData(data);
          commitChange(change, null);
      }
docs: Registers a new sitemap entry.<p>
  
  @param newEntry the new entry
  @param parentId the parent entry id
  @param resourceTypeId the resource type id
  @param copyResourceId the copy resource id
  @param parameter an additional parameter which may contain more information needed to create the new resource
  @param isNewSitemap a flag controlling whether a new sitemap should be created