+ public ReadDataReply(NormalizedNode<?, ?> normalizedNode, short version) {
+ super(version);
+ this.normalizedNode = normalizedNode;
+ }
+
+ public NormalizedNode<?, ?> getNormalizedNode() {
+ return normalizedNode;
+ }
+
+ @Override
+ public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
+ super.readExternal(in);
+ normalizedNode = SerializationUtils.deserializeNormalizedNode(in);
+ }
+
+ @Override
+ public void writeExternal(ObjectOutput out) throws IOException {
+ super.writeExternal(out);
+ SerializationUtils.serializeNormalizedNode(normalizedNode, out);
+ }
+
+ public static ReadDataReply fromSerializable(Object serializable) {
+ return (ReadDataReply) serializable;
+ }
+
+ public static boolean isSerializedType(Object message) {
+ return message instanceof ReadDataReply;
+ }