Document resultsDoc = new Document((Element)XOMTools.safeCopy(ontoDoc.getRootElement()));
plainDoc = new Document((Element)XOMTools.safeCopy(plainDoc.getRootElement()));
StandoffTable st = new StandoffTable(plainDoc.getRootElement());
XMLInserter xi = new XMLInserter(resultsDoc.getRootElement(), "a", "c");
new XMLSpanTagger(plainDoc.getRootElement(), "b");
Nodes annots = safDoc.query("//annot");
for(int i=0;i<annots.size();i++) {
//if(true) continue;
Element annot = (Element)annots.get(i);