docs: public CompartmentDefinition addResource(CompartmentDefinitionResourceComponent t) { //3
        if (t == null)
          return this;
        if (this.resource == null)
          this.resource = new ArrayList<CompartmentDefinitionResourceComponent>();
        this.resource.add(t);
        return this;
      }