title: Why JAX-RS Response.fromResponse(anotherResponse) not copying the entity?
body: <p>This is part of a JAX-RS server which receives a response from another server and sends the same response back to its client.</p>
  
  <p>This copies the entity from anotherResponse to responseForClient:</p>
  
  <p><code>Response responseForClient = Response.fromResponse(anotherResponse).entity(anotherResponse.readEntity(InputStream.class)).build();</code></p>
  
  <p>This doesn't copy the entity:</p>
  
  <p><code>Response responseForClient = Response.fromResponse(anotherResponse).build();</code></p>
  
  <p>The second one should also work as JAX-RS Response.fromResponse() should copy the entity also.</p>
  
  <p>Why setting the entity is required?</p>
  
  <p>I am using RestEasy-3.0.</p>