persistIndexedURLSetWrapper(currentURLSetWrapper);
// Build the siteMapIndex
SiteMapIndexWrapper siteMapIndexWrapper = new SiteMapIndexWrapper();
for (String fileName : indexedFileNames) {
SiteMapWrapper siteMapWrapper = new SiteMapWrapper();
String fileLoc = null;
if (gzipSiteMapFiles) {
fileLoc = BroadleafFileUtils.appendUnixPaths(baseUrl, fileName + ".gz");
} else {
fileLoc = BroadleafFileUtils.appendUnixPaths(baseUrl, fileName);
}
siteMapWrapper.setLoc(fileLoc) ;
siteMapWrapper.setLastmod(now);
siteMapIndexWrapper.getSiteMapWrappers().add(siteMapWrapper);
}
if (LOG.isTraceEnabled()) {
LOG.trace("Persisting sitemap.xml file for indexed site map ");