GeneratorMain gen = new GeneratorMain();
processElementDataset(gen, root);
return gen;
}
else {
throw new UnableToComplyException("Experiment specification has incorrect document element: " + root.getNodeName());
}
}
catch(FileNotFoundException e) {
throw new UnableToComplyException("Can't open specification file.", e);
}
catch(SAXException e) {
throw new UnableToComplyException("Error parsing specification file.", e);
}
catch(IOException e) {
throw new UnableToComplyException("IO Exception loading specification file.", e);
}
catch(ParserConfigurationException e) {
throw new UnableToComplyException("Parser Configuration Error", e);
}
}