code: private static boolean isValid(String name) {
      return !name.isEmpty() && name.length() <= MAX_LENGTH && StringUtils.isPrintableString(name);
    }
docs: Determines whether the given {@code String} is a valid tag key.
  
  @param name the tag key name to be validated.
  @return whether the name is valid.