/** Adds a single sitemap to the index */ public SitemapIndexGenerator addUrl(SitemapIndexUrl url) { UrlUtils.checkUrl(url.url.toString(), baseUrlString); if (urls.size() >= maxUrls) { throw new RuntimeException("More than " + maxUrls + " urls"); } urls.add(url); return this; }