code: public char getChar(String key, char defaultValue) {
      Object value = get(key);
      if (value instanceof Character) {
        return (Character) value;
      }
      if (value != null && value instanceof String) {
        if (((String) value).length() == 1) {
          return ((String) value).charAt(0);
        }
      }
      return defaultValue;
    }
docs: Returns the value mapped by {@code key} if it exists and is a char or can be coerced to a char.
  Returns {@code defaultValue} otherwise.