Matcher matcher = pattern.matcher(input);
String matched;
while (matcher.find()) {
int start = matcher.start(1);
matched = fixUpDateTimeStrings(matcher.group(1));
DateTimeAnnot dtAnnot = (DateTimeAnnot) m.newAnnotation(jcas, start, matcher.end(1));
pp.setIndex(0);
Date dtSpec = dateFormat.parse(matched, pp);
// System.out.println(dtAnnot.dtSpec);
if (dtSpec != null) {
dtAnnot.setShortDateString(dfDateShort.format(dtSpec));
}
dtAnnot.addToIndexes();
}
}