@Override public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); if (correlationId != null) out.writeUTF(correlationId); else out.writeObject(null); }
protected void copy(AbstractResponseMessage message, String correlationId) { super.copy(message); message.correlationId = correlationId; }
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); this.correlationId = in.readUTF(); }