numToRead = in.readInt(); if (numToRead > 0) { receivers = new ArrayList(numToRead); } for (int i = 0; i < numToRead; i++) { receivers.add (in.readObject()); }
  public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {    UID = (UID)in.readObject();    itemNomen = ((String) in.readObject()).intern();    aggregateNumber = in.readLong();    prototypeUID = ((String) in.readObject()).intern();    ownerID      = ((String) in.readObject()).intern();    name         = ((String) in.readObject()).intern();    //    manifestUID = ((String) in.readObject()).intern();    hasManifest = in.readBoolean();    int numToRead = in.readInt();    if (numToRead > 0) nomenclatures = new ArrayList(numToRead);    for (int i = 0; i < numToRead; i++)      nomenclatures.add (((String) in.readObject()).intern());    numToRead = in.readInt();    if (numToRead > 0) typeIdentifications = new ArrayList(numToRead);    for (int i = 0; i < numToRead; i++)      typeIdentifications.add (((String) in.readObject()).intern());    numToRead = in.readInt();    if (numToRead > 0) weights = new ArrayList(numToRead);    for (int i = 0; i < numToRead; i++)      weights.add (in.readObject()); // should be instances of Mass  }