Object[] initargs = new Object[2];
JCasImpl jcasView = null;
// this funny logic is because although the annotationView should always be set if
// a type is a subtype of annotation, it isn't always set if an application uses low-level
// api's. Rather than blow up, we limp along.
CASImpl maybeAnnotationView = null;
if (isSubtypeOfAnnotationBase) {
final int sofaNbr = getSofaNbr(addr, casView);
if (sofaNbr > 0) {
maybeAnnotationView = (CASImpl) casView.getView(sofaNbr);
}
}
final CASImpl view = (null != maybeAnnotationView) ? maybeAnnotationView : casView;
try {
jcasView = (JCasImpl) view.getJCas();
} catch (CASException e1) {
logAndThrow(e1, jcasView);
}
// Return eq fs instance if already created