try {
// Make sure that the AnalysisComponent has a next output CAS to
// return
boolean analysisComponentHasNext = mAnalysisComponent.hasNext();
if (!analysisComponentHasNext) {
throw new UIMA_IllegalStateException(UIMA_IllegalStateException.NO_NEXT_CAS,
new Object[0]);
}
// call AnalyaisComponent.next method to populate CAS
try {
CAS cas = callAnalysisComponentNext();