*/
@Override
public void process( final JCas jcas ) throws AnalysisEngineProcessException {
_logger.info( "Starting processing" );
final JFSIndexRepository indexes = jcas.getJFSIndexRepository();
final AnnotationIndex annotationIndex = indexes.getAnnotationIndex( _lookupWindowType );
if ( annotationIndex == null ) { // I don't trust AnnotationIndex.size(), so don't check
return;
}
final Map<RareWordDictionary,Collection<SpannedRareWordTerm>> dictionaryTermsMap
= new HashMap<RareWordDictionary, Collection<SpannedRareWordTerm>>();
final Iterator windowIterator = annotationIndex.iterator();
try {
while ( windowIterator.hasNext() ) {
final Annotation window = (Annotation) windowIterator.next();
if ( isWindowOk( window ) ) {
processWindow( jcas, window, dictionaryTermsMap );