- public static DataExists fromSerializable(final Object serializable){
- if(serializable instanceof DataExists) {
- return (DataExists)serializable;
- } else {
- ShardTransactionMessages.DataExists o = (ShardTransactionMessages.DataExists) serializable;
- return new DataExists(InstanceIdentifierUtils.fromSerializable(o.getInstanceIdentifierPathArguments()),
- DataStoreVersions.LITHIUM_VERSION);
- }
+ public static DataExists fromSerializable(final Object serializable) {
+ Preconditions.checkArgument(serializable instanceof DataExists);
+ return (DataExists)serializable;