out.writeInt ((receivers != null) ? receivers.size() : 0); if (receivers == null && nomenclatures != null) System.err.println ("Instance " + UID + " - inconsistent receivers was null, but nomen was not."); if (receivers != null) { for (Iterator iter = receivers.iterator(); iter.hasNext(); ) { Object obj = iter.next(); out.writeObject(obj); } }
  public void writeExternal(ObjectOutput out) throws IOException {    out.writeObject(UID);    out.writeObject((itemNomen != null) ? itemNomen.intern() : "no_nomenclature");    out.writeLong(aggregateNumber);    out.writeObject(prototypeUID.intern());    out.writeObject(ownerID.intern());    out.writeObject ((name != null) ? name.intern() : "no_name");    //  out.writeObject(manifestUID);    out.writeBoolean(hasManifest);    out.writeInt ((nomenclatures != null) ? nomenclatures.size() : 0);    if (nomenclatures != null) {      for (Iterator iter = nomenclatures.iterator(); iter.hasNext(); ) {	out.writeObject(iter.next());      }    }    out.writeInt ((typeIdentifications != null) ? typeIdentifications.size() : 0);    if (typeIdentifications != null) {      for (Iterator iter = typeIdentifications.iterator(); iter.hasNext(); ) {	out.writeObject(iter.next());      }    }    out.writeInt ((weights != null) ? weights.size() : 0);    if (weights != null) {      for (Iterator iter = weights.iterator(); iter.hasNext(); ) {	out.writeObject(iter.next());      }    }  }