class JsonUtil {

  private static Map<String, Object> toJsonMap(
      final Token<? extends TokenIdentifier> token) throws IOException {
    if (token == null) {
      return null;
    }

    final Map<String, Object> m = new TreeMap<>();
    m.put("urlString", token.encodeToUrlString());
    return m;
  }

}