List<String> links = new ArrayList<String>();
int level = 1;
try {
crawlercommons.sitemaps.SiteMapParser parser = new SiteMapParser();
AbstractSiteMap asm = parser.parseSiteMap(pageLoader.getContentType(), IOUtils.toByteArray(pageLoader.getStream()), new URL(currentUrlItem.getUrl()));
if (asm.isIndex()) {
// push all url with depth = 0
level = 0;
Collection<AbstractSiteMap> sm = ((SiteMapIndex)asm).getSitemaps();
Iterator<AbstractSiteMap> i=sm.iterator();
while(i.hasNext()) {