public void consumeHits(JCas jcas, Iterator lookupHitItr)
throws AnalysisEngineProcessException
{
while (lookupHitItr.hasNext())
{
LookupHit lh = (LookupHit) lookupHitItr.next();
int begin = lh.getStartOffset();
int end = lh.getEndOffset();
String coveredText = jcas.getDocumentText().substring(begin, end);
iv_logger.info("LookupHit offsets=("+begin+","+end+")\tcoveredText="+coveredText);
MetaDataHit mdh = lh.getDictMetaDataHit();
Iterator nameItr = mdh.getMetaFieldNames().iterator();
while (nameItr.hasNext())
{
String mfName = (String)nameItr.next();
String mfValue = mdh.getMetaFieldValue(mfName);