String outputDir = dotOutputDir;
if (ObjectHelper.isNotEmpty(outputDir)) {
if (size > 1) {
outputDir += "/" + name;
}
RouteDotGenerator generator = new RouteDotGenerator(outputDir);
LOG.info("Generating DOT file for routes: " + outputDir + " for: " + camelContext + " with name: " + name);
generator.drawRoutes((ModelCamelContext)camelContext);
}
}