* @throws AnnotatorProcessException
*/
private void makeEntityAnnotation(Constructor annotationMaker, JCas jCas, int start, int end)
throws AnalysisEngineProcessException {
try {
EntityAnnotation entityAnnot = (EntityAnnotation) annotationMaker
.newInstance(new Object[] { jCas });
entityAnnot.setBegin(start);
entityAnnot.setEnd(end);
entityAnnot.setComponentId(COMPONENT_NAME);
entityAnnot.addToIndexes();
} catch (Exception e) {
throw new AnalysisEngineProcessException(e);
}
}