*/
public Crawler getCrawler(String crawlerId)
{
for (int i = 0; i < crawlers.size(); i++)
{
Crawler crawler = crawlers.get(i);
String id = crawler.getCrawlerId();
if (crawlerId.equals(id))
{
Crawler newCrawler = componentContext.getService(Crawler.class, "crawlers");
return newCrawler;
}
}
throw new RuntimeException("No crawler with id " + crawlerId + " found");
}