docs: private JSONObject getConvertedResponseAsJson(SpellCheckResponse response) {
  
          if (null == response) {
              return null;
          }
  
          final JSONObject suggestions = new JSONObject();
          final Map<String, Suggestion> solrSuggestions = response.getSuggestionMap();
  
          // Add suggestions to the response
          for (final String key : solrSuggestions.keySet()) {
  
              // Indicator to ignore words that are erroneously marked as misspelled.
              boolean ignoreWord = false;
  
              // Suggestions that are in the form "Xxxx" -> "xxxx" should be ignored.
              if (Character.isUpperCase(key.codePointAt(0))) {
                  final String lowercaseKey = key.toLowerCase();
                  // If the suggestion map doesn't contain the lowercased word, ignore this entry.
                  if (!solrSuggestions.containsKey(lowercaseKey)) {
                      ignoreWord = true;
                  }
              }
  
              if (!ignoreWord) {
                  try {
                      // Get suggestions as List
                      final List<String> l = solrSuggestions.get(key).getAlternatives();
                      suggestions.put(key, l);
                  } catch (JSONException e) {
                      LOG.debug("Exception while converting Solr spellcheckresponse to JSON. ", e);
                  }
              }
          }
  
          return suggestions;
      }