AnnotationFS categoryAnnotation =
(AnnotationFS) categoryIndex.iterator().next();
// add to event collection
DocumentSample sample = new DocumentSample(
categoryAnnotation.getStringValue(mCategoryFeature),
cas.getDocumentText());
documentSamples.add(sample);
}