// Add the heading annotations
List<HeadingRange> headings = zonerCli.getHeadings();
for (Iterator<HeadingRange> i = headings.iterator(); i.hasNext(); ) {
HeadingRange r = i.next();
Heading hAnnot = new Heading(jcas);
hAnnot.setBegin(r.getHeadingBegin());
hAnnot.setEnd(r.getHeadingEnd());
hAnnot.setLabel(r.getLabel());
hAnnot.addToIndexes();
logger.info(String.format("added new headingrange annotation [%d-%d] \"%s\"", hAnnot.getBegin(), hAnnot.getEnd(), hAnnot.getCoveredText()));
}
}