if (planFile.isDirectory()) {
throw new RuntimeException("[" + file + "] is a directory. The --simulation argument must refer to a " +
"file.");
}
SimulationPlanner planner = new SimulationPlanner();
SimulationPlan plan = null;
try {
plan = planner.create(planFile);
} catch (Exception e) {
throw new RuntimeException("Failed to create simulation: " + e.getMessage(), e);
}
Simulator simulator = new Simulator();