code: public String getContent() throws ConnectionException {
      	
      	logger.debug("Enter Response::getContent");	
      	
      	if (content != null) {
      		logger.debug("content already available ");
              return content;
          }
  
      	BufferedReader rd = new BufferedReader(new InputStreamReader(stream));
  		StringBuffer result = new StringBuffer();
  		String line = "";
  		try {
  			while ((line = rd.readLine()) != null) {
  			    result.append(line);
  			}
  		} catch (IOException e) {
  			logger.error("Exception while retrieving content", e);
              throw new ConnectionException(e.getMessage());
  		}
  		content = result.toString();
  		logger.debug("End Response::getContent");	
  		return content;
          
      }
docs: Returns the json content from http response
  
  @return
  @throws ConnectionException