- if(serializable instanceof DataExistsReply) {
- return (DataExistsReply)serializable;
- } else {
- ShardTransactionMessages.DataExistsReply o = (ShardTransactionMessages.DataExistsReply) serializable;
- return new DataExistsReply(o.getExists(), DataStoreVersions.LITHIUM_VERSION);
- }
+ Preconditions.checkArgument(serializable instanceof DataExistsReply);
+ return (DataExistsReply)serializable;