}
public AnnotationFS createAnnotation(Type type, int begin, int end) {
if (this == this.svd.baseCAS) {
// Can't create annotation on base CAS
CASRuntimeException e = new CASRuntimeException(CASRuntimeException.INVALID_BASE_CAS_METHOD,
new String[] { "createAnnotation(Type, int, int)" });
throw e;
}
final TypeSystemImpl ts = this.svd.casMetadata.ts;
FeatureStructure fs = createFS(type);