code: protected static Map<String, String> handleResponse(HttpResponse response) throws IOException {
      int code = response.getStatusLine().getStatusCode();
      if (code != HttpStatus.SC_CREATED && code != HttpStatus.SC_OK) {
        log.error("Failed : HTTP error code : " + response.getStatusLine().getStatusCode());
        throw new AzkabanClientException("Failed : HTTP error code : " + response.getStatusLine().getStatusCode());
      }
  
      // Get response in string
      HttpEntity entity = null;
      String jsonResponseString;
  
      try {
        entity = response.getEntity();
        jsonResponseString = IOUtils.toString(entity.getContent(), "UTF-8");
        log.info("Response string: " + jsonResponseString);
      } catch (Exception e) {
        throw new AzkabanClientException("Cannot convert response to a string", e);
      } finally {
        if (entity != null) {
          EntityUtils.consume(entity);
        }
      }
  
      return AzkabanClient.parseResponse(jsonResponseString);
    }
docs: Convert a {@link HttpResponse} to a <string, string> map.
  Put protected modifier here so it is visible to {@link AzkabanAjaxAPIClient}.
  
  @param response An http response returned by {@link org.apache.http.client.HttpClient} execution.
  This should be JSON string.
  @return A map composed by the first level of KV pair of json object