gerAnnot.setOtherAnnotation(engAnnot);
gerAnnot.addToIndexes();
}
// Test that the annotations are in separate index spaces, and that Sofas are indexed
JFSIndexRepository indexes = jcas.getJFSIndexRepository();
// FSIndex sofaIndex = indexes.getIndex(CAS.SOFA_INDEX_NAME);
indexes = engJcas.getJFSIndexRepository();
FSIndex engIndex = indexes.getAnnotationIndex(Annotation.type);
indexes = gerJcas.getJFSIndexRepository();
FSIndex gerIndex = indexes.getAnnotationIndex(Annotation.type);
indexes = frJcas.getJFSIndexRepository();
FSIndex frIndex = indexes.getAnnotationIndex(Annotation.type);
FSIterator sofaIter = jcas.getSofaIterator();
int numSofas = 0;
while (sofaIter.isValid()) {
numSofas++;
sofaIter.moveToNext();