modelDefinition.delete();
}
// Put in place all measures from classes with null service demands and adjusts throughputs
Document outDocument;
XMLUtils xmlUtils = new XMLUtils();
try {
outDocument = xmlUtils.loadXML(temp);
addNullMeasuresCorrectThroughputs(inputModel, outDocument);
} catch (SAXException e2) {
logger.error("Cannot parse correctly output JMVA model: " + e2.getMessage());
return false;
} catch (IOException e1) {
logger.error("I/O error opening output JMVA model: " + e1.getMessage());
return false;
}
logger.debug("Added null measures to final results");
try {
xmlUtils.saveXML(outDocument, modelDefinition);
} catch (Exception e3) {
logger.error("could not copy results into model " + modelDefinitionPath);
return false;
}