src/main/java/com/hp/autonomy/hod/client/config/ResponseParser.java
InputStream parseResponse(final TokenProxy<?, ?> tokenProxy, final Response response) {
        checkRefresh(tokenProxy, response);

        try {
            return response.getBody().in();
        } catch (final IOException e) {
            throw new RuntimeException(e);
        }
    }
InputStream parseResponse(final TokenProxy<?, ?> tokenProxy, final Response response) {
        checkRefresh(tokenProxy, response);

        try {
            return response.getBody().in();
        } catch (final IOException e) {
            throw new RuntimeException(e);
        }
    }
Checks the response headers for a refreshed authentication token then returns the response body as an input stream.
@param tokenProxy The token proxy to update in the token repository if required
@param response The response to read
@return The response body as an input stream