int partitionId = partitionService.getPartitionId(key);
InternalPartition partition = partitionService.getPartition(partitionId);
if (nodeEngine.getThisAddress().equals(partition.getReplicaAddress(i))) {
Object val = mapServiceContext.getPartitionContainer(partitionId).getRecordStore(name).get(key);
if (val != null) {
mapServiceContext.interceptAfterGet(name, val);
// this serialization step is needed not to expose the object, see issue 1292
return mapServiceContext.toData(val);
}
}
}