@SuppressWarnings("unchecked")
  public static <T extends TOP> void storeFS(JCas jcas, T fs) {

    Iterator<TOP> it = jcas.getJFSIndexRepository().getAllIndexedFS(T.type);
    while (it.hasNext()) {
      T oldAnnotation = (T) it.next();
      oldAnnotation.removeFromIndexes();
    }
    fs.addToIndexes();
  }
@ SuppressWarnings ( "unchecked" ) public static < T extends TOP > void storeFS ( JCas jcas , T fs ) { Iterator < TOP > it = jcas . getJFSIndexRepository ( ) . getAllIndexedFS ( T . type ) ; while ( it . hasNext ( ) ) { T oldAnnotation = ( T ) it . next ( ) ; oldAnnotation . removeFromIndexes ( ) ; } fs . addToIndexes ( ) ; }
@param jcas
the CAS in which we'll store this annotation
@param fs
the annotation to be stored. Removes any instances of this annotation type fi