throw new IllegalStateException(String.format("Unknown type: %s", typeName)); AnnotationFS anno = cas.createAnnotation(type, _anno.getBegin(), _anno.getEnd()); for (String featName : _anno.getFeatureNames()) { Feature feat = type.getFeatureByBaseName(featName);