docs: public void renameUid(final String type, final String oldname,
        final String newname) {
      Tags.validateString(type, oldname);
      Tags.validateString(type, newname);
      if (type.toLowerCase().equals("metric")) {
        try {
          this.metrics.getId(oldname);
          this.metrics.rename(oldname, newname);
        } catch (NoSuchUniqueName nsue) {
          throw new IllegalArgumentException("Name(\"" + oldname +
              "\") does not exist");
        }
      } else if (type.toLowerCase().equals("tagk")) {
        try {
          this.tag_names.getId(oldname);
          this.tag_names.rename(oldname, newname);
        } catch (NoSuchUniqueName nsue) {
          throw new IllegalArgumentException("Name(\"" + oldname +
              "\") does not exist");
        }
      } else if (type.toLowerCase().equals("tagv")) {
        try {
          this.tag_values.getId(oldname);
          this.tag_values.rename(oldname, newname);
        } catch (NoSuchUniqueName nsue) {
          throw new IllegalArgumentException("Name(\"" + oldname +
              "\") does not exist");
        }
      } else {
        LOG.warn("Unknown type name: " + type);
        throw new IllegalArgumentException("Unknown type name");
      }
    }