public static void modifySpanAnnotation(AnnotationFS aOldFs,AnnotationFS aNewFs,JCas aJCas){
  Feature[] features=getAllFeatures(aOldFs);
  for (  Feature f : features) {
    if (isLinkOrBasicFeatures(aOldFs,f)) {
      continue;
    }
    setFeatureValue(aNewFs,f,getFeatureValue(aOldFs,f));
  }
  aJCas.addFsToIndexes(aNewFs);
}

public static void modifySpanAnnotation ( AnnotationFS aOldFs , AnnotationFS aNewFs , JCas aJCas ) { Feature [ ] features = getAllFeatures ( aOldFs ) ; for ( Feature f : features ) { if ( isLinkOrBasicFeatures ( aOldFs , f ) ) { continue ; } setFeatureValue ( aNewFs , f , getFeatureValue ( aOldFs , f ) ) ; } aJCas . addFsToIndexes ( aNewFs ) ; }
modify existing non - stackable annotations from one of the users annotation
