docs: public Reference addDetail() { //3
        Reference t = new Reference();
        if (this.detail == null)
          this.detail = new ArrayList<Reference>();
        this.detail.add(t);
        return t;
      }