protected void annotateRange(JCas jcas, String text, int rangeBegin,
int rangeEnd) throws AnnotatorContextException {
if (iv_logger.isInfoEnabled())
iv_logger.info("started Sentence merging process.");
JFSIndexRepository indexes = jcas.getJFSIndexRepository();
Iterator<?> sentItr = indexes.getAnnotationIndex(Sentence.type)
.iterator();
Sentence prevSent = null;
Sentence currSent = null;
Map<Integer, Sentence> sentences = getSentencesOrderById(sentItr);