Call the IasCrawler.listCrawls() method to list the existing crawls.
IasCrawler.listCrawls()
The method returns a List<CrawlId> object, which has zero or more CrawlId objects. Each CrawlId has the name of a crawl.
To list the set of existing crawls:
System.out.println("There are " + crawler.listCrawls().size() + " crawls configured");
The IasCrawler.listCrawls() method does not throw an exception if it fails.