@Override
public MultipleObjectsBundle loadData() {
if(logger.isVerbose()) {
logger.verbose("Loading specification ...");
}
GeneratorMain gen;
try {
gen = loadXMLSpecification();
}
catch(UnableToComplyException e) {
throw new AbortException("Cannot load XML specification", e);
}
if(logger.isVerbose()) {
logger.verbose("Generating clusters ...");
}
if(testAgainstModel != null) {
gen.setTestAgainstModel(testAgainstModel);
}
try {
return gen.generate();
}
catch(UnableToComplyException e) {
throw new AbortException("Data generation failed. ", e);
}
}