final MapServiceContext mapServiceContext = mapService.getMapServiceContext();
final NodeEngine nodeEngine = mapServiceContext.getNodeEngine();
final InternalPartitionService partitionService = nodeEngine.getPartitionService();
final Address thisAddress = nodeEngine.getThisAddress();
final int partitionId = partitionService.getPartitionId(key);
final InternalPartition partition = partitionService.getPartition(partitionId, false);
if (!partition.isOwnerOrBackup(thisAddress)) {
return null;
}
final PartitionContainer partitionContainer = mapServiceContext.getPartitionContainer(partitionId);
final RecordStore recordStore = partitionContainer.getExistingRecordStore(name);
if (recordStore == null) {