record.getPlugins().put(pluginKey, plugin);
}
}
// Build Crawljax
CrawljaxRunner crawljax = new CrawljaxRunner(builder.build());
// Set Timestamps
timestamp = new Date();
record.setStartTime(timestamp);
record.setCrawlStatus(CrawlStatusType.running);
crawlRecords.update(record);
LogWebSocketServlet.sendToAll("run-" + Integer.toString(crawlId));
// run Crawljax
crawljax.call();
// set duration
long duration = (new Date()).getTime() - timestamp.getTime();
config = configurations.findByID(record.getConfigurationId()); //Reload config in case it was edited during crawl execution
config.setLastCrawl(timestamp);