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