Annotation a = (Annotation) newFS;
a.setBegin(matchedAnnotation.getBegin());
a.setEnd(matchedAnnotation.getEnd());
stream.addAnnotation(a, match);
}
TOP newStructure = null;
if (newFS instanceof TOP) {
newStructure = (TOP) newFS;
gatherFeatures(newStructure, features, matchedAnnotation, element, match, stream);
newStructure.addToIndexes();
}
}
}