private Object getValue(Region.Entry entry) {
    final EntrySnapshot es = (EntrySnapshot) entry;
    Object value;
    try {
      value = es == null ? null : es.getRawValue(true);
    } catch (EntryDestroyedException e) {
      value = null;
    }
    return value;
  }
An Async event queue listener that writes all of the events in batches to Lucene
geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/LuceneEventListener.java