DownloadFileRequest request = new DownloadFileRequest(mConfig, objectMapper, mFileId, requestObject);
request.setAuth(auth);
DefaultBoxResponse response = (DefaultBoxResponse) mRestClient.execute(request);
DefaultFileResponseParser parser = new DefaultFileResponseParser();
ErrorResponseParser errorParser = new ErrorResponseParser(objectMapper);
Object result = response.parseResponse(parser, errorParser);
if (result instanceof BoxServerError) {
throw new BoxServerException((BoxServerError) result);
}
return (InputStream) result;
}