AnnotationIndex<Annotation> annoIndex = jCas.getAnnotationIndex();
FSIterator<Annotation> iter = annoIndex.iterator();
while (iter.hasNext()) {
Annotation anno = iter.next();
try {
Span span = Chronic.parse(anno.getCoveredText());
if (span != null && span.getBeginCalendar() != null) {
Date date = new Date(jCas);
date.setBegin(anno.getBegin());
date.setEnd(anno.getEnd());
date.setDate(tlDateFormat.get().format(
span.getBeginCalendar().getTime()));
date.addToIndexes();
}
} catch (Exception e) {
if (log.isDebugEnabled())
log.debug(