logText = exportedPlanFile +" -> " + sorted2;
System.out.println(logText);
log.info(logText);
XMLCompare xmlCompare = new XMLCompare();
xmlCompare.setExcludedNodes(nodesToExclude);
if (xmlCompare.compareXml(sorted1, sorted2, true, true)) {
// they are equal, remove the exported plan
exportedPlanFile.delete();
log.info("SUCCESS");
} else {
logText = " - failed: " + System.getProperty("line.separator") + xmlCompare.getErrorMessage();
System.out.println(logText);
log.info(logText);
success = false;