CmsSitemapEntry entryPointEntry = OpenCms.getSitemapManager().getEntryForUri(cms, entryPoint);
<BUG>if (entryPointEntry.isSitemap()) {
sitemapEntries = sitemapEntries.get(0).getSubEntries();</BUG>
}
<BUG>xmlSitemap.save(cms, sitemapEntries);
</BUG>
}
protected JSONArray addContents(JSONArray jsonEntriesList, Map<String, CmsXmlContentProperty> propertyConf)
throws CmsException {
List<CmsSitemapEntry> list = jsonToEntryList(jsonEntriesList, propertyConf, false);

CmsSitemapEntry entryPointEntry = OpenCms.getSitemapManager().getEntryForUri(cms, entryPoint);
if (entryPointEntry.isSitemap() && !cms.existsResource(entryPoint)) {
sitemapEntries = sitemapEntries.get(0).getSubEntries();
}
xmlSitemap.save(cms, entryPoint, sitemapEntries);
}
protected JSONArray addContents(JSONArray jsonEntriesList, Map<String, CmsXmlContentProperty> propertyConf)
throws CmsException {
List<CmsSitemapEntry> list = jsonToEntryList(jsonEntriesList, propertyConf, false);
