CAS cas = stream.getCas();
<BUG>if(cas instanceof CASImpl) {
</BUG>
CASImpl casImpl = (CASImpl) cas;
LowLevelCAS lowLevelCAS = casImpl.getLowLevelCAS();
<BUG>FeatureStructure fs = lowLevelCAS.ll_getFSForRef(ref);
if(fs instanceof AnnotationFS) {
return (AnnotationFS) fs;
}</BUG>
}

CAS cas = stream.getCas();
if (cas instanceof CASImpl) {
CASImpl casImpl = (CASImpl) cas;
LowLevelCAS lowLevelCAS = casImpl.getLowLevelCAS();
FeatureStructure fs = lowLevelCAS.ll_getFSForRef(ref);
return fs;
}
