@Immutable
public class DeltaAwareExternalizer implements Externalizer {
public void writeObject(ObjectOutput output, Object subject) throws IOException {
DeltaAware dw = (DeltaAware) subject;
output.writeObject(dw.delta());
}
public Object readObject(ObjectInput input) throws IOException, ClassNotFoundException {
return input.readObject();
}