- public static DeleteModification fromSerializable(Object serializable) {
- PersistentMessages.Modification o = (PersistentMessages.Modification) serializable;
- return new DeleteModification(InstanceIdentifierUtils.fromSerializable(o.getPath()));
+ public static DeleteModification fromStream(final ObjectInput in, final short version) {
+ DeleteModification mod = new DeleteModification(version);
+ try {
+ mod.readExternal(in);
+ } catch (IOException e) {
+ throw new IllegalArgumentException("Error deserializing DeleteModification", e);
+ }
+ return mod;