code: public ApplicationConfig setId(String id) {
          if (this.id.equals(this.name)) {
              // keep name and id in sync if no custom name was specified
              this.name = id;
          }
          this.id = id;
          return this;
      }
docs: Sets the identifier of the application (keep it in sync with the name if already equals to it).
  
  @param id the identifier.
  @return the config object itself.