if (erwf == null) {
SimSystem.report(Level.SEVERE, "Can't get ExperimentWriterFactory!");
return;
}
IExperimentWriter writer = erwf.create(parameter, SimSystem.getRegistry().createContext());
// write BaseExperiment to the file
try {
writer.writeExperiment(parameter, experiment);
SimSystem.report(Level.CONFIG, "Experiment backup saved to: "
+ ExperimentPerspective.getExpLocation(parameter));
} catch (IOException e) {
SimSystem.report(Level.WARNING,
"Can't write backup of BaseExperiment:", e);