PreGetContext preGetContext = new PreGetContext(this, keyList, resultMap);
getDatastoreServiceConfig().getDatastoreCallbacks().executePreGetCallbacks(preGetContext);
if (!resultMap.isEmpty()) {
keyList.removeAll(resultMap.keySet());
}
PreGetCachingResult preGetCachingResult =
getEntityCachingStrategy().preGet(this, keyList, resultMap);
keyList.removeAll(preGetCachingResult.getKeysToSkipLoading());
Future<Map<Key, Entity>> result = null;
if (txn == null && getDatastoreServiceConfig().getReadPolicy().getConsistency() == STRONG &&
getDatastoreType() == HIGH_REPLICATION) {
Collection<List<Key>> keysByEntityGroup = KEY_GROUPER.getItemsByEntityGroup(keyList);
if (keysByEntityGroup.size() > 1) {