- ShardTransactionMessages.DataExistsReply o = (ShardTransactionMessages.DataExistsReply) serializable;
- return create(o.getExists());
+ if(serializable instanceof DataExistsReply) {
+ return (DataExistsReply)serializable;
+ } else {
+ ShardTransactionMessages.DataExistsReply o = (ShardTransactionMessages.DataExistsReply) serializable;
+ return new DataExistsReply(o.getExists(), DataStoreVersions.LITHIUM_VERSION);
+ }
+ }
+
+ public static boolean isSerializedType(Object message) {
+ return message instanceof DataExistsReply || message instanceof ShardTransactionMessages.DataExistsReply;