code: public void setName(final String repoName) {
      if (name == null) {
        name = repoName;
      } else if (!name.equals(repoName)) {
        throw new IllegalStateException(
          "Repository [" + name + "] cannot be renamed as [" + repoName + "].");
      }
    }
docs: Set the name of this repository.
  
  Note that once named, a repository cannot be rerenamed.
  @param repoName name of hierarchy