return returnValue;
}
private void remoteGetBeforeWrite(InvocationContext ctx, WriteCommand command) throws Throwable {
if (command instanceof AbstractDataCommand && (isNeedReliableReturnValues(command) || command.isConditional())) {
AbstractDataCommand singleKeyCommand = (AbstractDataCommand) command;
Object returnValue = null;
// get it remotely if we do not have it yet
if (needsRemoteGet(ctx, singleKeyCommand)) {
returnValue = remoteGet(ctx, singleKeyCommand.getKey(), singleKeyCommand, true);
}
if (returnValue == null) {
localGet(ctx, singleKeyCommand.getKey(), true, command, false);
}
}
}