code: public Reference addSlot() { //3
        Reference t = new Reference();
        if (this.slot == null)
          this.slot = new ArrayList<Reference>();
        this.slot.add(t);
        return t;
      }
docs: syntactic sugar