//throw new AnalysisEngineProcessException(e);
}
// Add the zone annotations
List<Range> rangeList = zonerCli.getRangeList();
for (Iterator<Range> i = rangeList.iterator(); i.hasNext(); ) {
Range r = i.next();
Zone zAnnot = new Zone(jcas);
zAnnot.setBegin(r.getBegin());
zAnnot.setEnd(r.getEnd());
zAnnot.setLabel(r.getLabel());
zAnnot.addToIndexes();
logger.info(String.format("added new zone annotation [%d-%d] \"%s\"", zAnnot.getBegin(), zAnnot.getEnd(), zAnnot.getCoveredText()));
}
// List<Range> subsectionRangeList = zonerCli.getSubsections();
// for (Iterator<Range> i = subsectionRangeList.iterator(); i.hasNext(); ) {
// Range r = i.next();
// Subzone sAnnot = new Subzone(jcas);
// sAnnot.setBegin(r.getBegin());
// sAnnot.setEnd(r.getEnd());
// sAnnot.setLabel(r.getLabel());
// sAnnot.addToIndexes();
// logger.info(String.format("added new subzone annotation [%d-%d] \"%s\"", sAnnot.getBegin(), sAnnot.getEnd(), sAnnot.getCoveredText()));
// }
// 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()));
}
}