class ResponseImpl extends Response {

    @Override
    public boolean bufferEntity() throws ProcessingException {
        checkEntityIsClosed();
        if (!entityBufferred && entity instanceof InputStream) {
            try {
                InputStream oldEntity = (InputStream)entity;
                entity = IOUtils.loadIntoBAIS(oldEntity);
                oldEntity.close();
                entityBufferred = true;
            } catch (IOException ex) {
                throw new ResponseProcessingException(this, ex);
            }
        }
        return entityBufferred;
    }

      ResponseImpl(int statusCode);
      ResponseImpl(int statusCode, Object entity);
      ResponseImpl(int statusCode, Object entity, String reasonPhrase);

}