code: public StructuredDataId makeId(final String defaultId, final int anEnterpriseNumber) {
          String id;
          String[] req;
          String[] opt;
          if (anEnterpriseNumber <= 0) {
              return this;
          }
          if (this.name != null) {
              id = this.name;
              req = this.required;
              opt = this.optional;
          } else {
              id = defaultId;
              req = null;
              opt = null;
          }
  
          return new StructuredDataId(id, anEnterpriseNumber, req, opt);
      }
docs: Creates an id based on the current id.
  
  @param defaultId The default id to use if this StructuredDataId doesn't have a name.
  @param anEnterpriseNumber The enterprise number.
  @return a StructuredDataId.