public void insert(SitemapXmlHandler.SitemapData sitemapData) {
        for (String link : sitemapData.links) {
            try {
                frontierManager.insert(LinkRelevance.createForward(link, 1.0d));
            } catch (Exception e) {
                logger.error("Failed to insert link into the frontier: "+link, e);
            }
        }
        logger.info("Added {} URLs from sitemap.", sitemapData.links.size());
        
        for (String sitemap : sitemapData.sitemaps) {
            try {
                frontierManager.insert(LinkRelevance.createSitemap(sitemap, 299));
            } catch (Exception e) {
                logger.error("Failed to insert sitemap into the frontier: "+sitemap);
            }
        }
        logger.info("Added {} child sitemaps.", sitemapData.sitemaps.size());
    }
This method inserts links from a given page into the frontier

@param obj
           Object - page containing links
@return Object
ache/src/main/java/achecrawler/link/LinkStorage.java