/** {@inheritDoc} */ @Override public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeObject(myUnitID); if (myProposal == null) { out.writeBoolean(false); } else { out.writeBoolean(true); out.writeObject(myProposal); } }