private String parseContent(InputStream response)
      throws IOException {
    BufferedReader reader = null;
    StringBuilder result = new StringBuilder();
    try {
      reader = new BufferedReader(new InputStreamReader(response, Charset.forName("UTF-8")));

      String line = null;
      while ((line = reader.readLine()) != null) {
        result.append(line);
      }
      return result.toString();
    } catch (IOException e) {
      e.printStackTrace();
    } finally {
      if (reader != null) {
        reader.close();
      }
    }
    return result.toString();
  }
Parses the content given in the form of input stream to String
@param response the inputstream
@return The string parsed from the given inputstream
@throws IOException Throws IOException if the inputstream cannot be parsed to the string
app/com/linkedin/drelephant/clients/azkaban/AzkabanWorkflowClient.java