protected PageEntry getEntry(final Region region, final Object key,
      SecurityService securityService, Object principal) {
    final EntrySnapshot entry = (EntrySnapshot) region.getEntry(key);
    if (entry == null) {
      return null;
    }

    Object value = entry.getRegionEntry().getValue(null);
    if (value == null || Token.isInvalidOrRemoved(value)) {
      return null;
    } else if (securityService.needPostProcess()) {
      value = securityService.postProcess(principal, region.getFullPath(), key, entry.getValue(),
          false);
    }

    return new PageEntry(key, value);
  }
{@link LuceneGetPageFunction} Returns the values of entries back to the user This behaves
basically like a getAll, but it does not invoke a cache loader
geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/results/LuceneGetPageFunction.java