// Create Annotations
ResultSpecification resultSpec = getResultSpecification();
if (resultSpec.containsType("org.apache.uima.tutorial.TimeAnnot"))
makeAnnotations(timeAnnotationMaker, hoursMinutesPattern, dfTimeShort);
if (resultSpec.containsType("org.apache.uima.tutorial.DateAnnot"))
makeAnnotations(dateAnnotationMaker, numericDatePattern, dfDateShort);
if (resultSpec.containsType("org.apache.uima.tutorial.DateAnnot"))
makeAnnotations(dateAnnotationMaker, mediumDatePattern, dfDateMedium);
if (resultSpec.containsType("org.apache.uima.tutorial.DateAnnot"))
makeAnnotations(dateAnnotationMaker, longDatePattern, dfDateLong);