Element e = (Element)epNodes.get(j);
String fromto = e.getAttributeValue("cfrom") + ":" + e.getAttributeValue("cto");
if(neMap.containsKey(fromto)) {
String id = neMap.get(fromto).get(0);
Element annot = (Element)saf.query("/saf/annot[@id='" + id + "']").get(0);
System.out.println(annot.toXML());
String xpfrom = annot.getAttributeValue("from");
String xpto = annot.getAttributeValue("to");
Nodes newAnnotNodes = newSaf.query("/saf/annot[@from='" + xpfrom + "'][@to='" + xpto + "']");
System.out.println(xpfrom + "\t" + xpto + "\t" + newAnnotNodes.size());
if(newAnnotNodes.size() > 0) {