out.writeUTF(nodeId);
out.writeInt(nodeId);
   public void write(DataOutputStream out) throws Exception   {      if (!(address instanceof IpAddress))      {         throw new IllegalStateException("Address must be IpAddress");      }            address.writeTo(out);            out.writeUTF(nodeId);         }