@Override
 public void write(TPDataOutput out, Connection<?> conn) throws IOException {
   super.write(out, conn);
   out.writeInteger(this.id);
   out.writeInteger(this.slots.size());
   for (SlotsType object : this.slots) object.write(out, conn);
 }
 /** A copy constructor for (among others) deep-copying groups and lists. */
 public SlotsType(SlotsType copy) {
   setSlot(copy.getSlot());
 }