title: IllegalStateException: Content has been consumed - How to resolve?
body: <p>I have the following code:</p>
  
  <pre><code>HttpGet httpGet = new HttpGet(serverAdress + "/rootservices");
          httpGet.setHeader("Accept", "text/xml");
          HttpResponse response = client.execute(httpGet, localContext);
  
          String projectURL = XMLDocumentParser.parseDocument(response.getEntity().getContent(), "oslc_scm:scmServiceProviders", "rdf:resource");
          String workItemURL = XMLDocumentParser.parseDocument(response.getEntity().getContent(), "oslc_cm:cmServiceProviders", "rdf:resource");
  </code></pre>
  
  <p>The problem here is that I read two times the HttpResponse object. So the second time I get the exception. But although I know the problem, I can´t find an easy solution. So what is a good way to solve that problem?</p>