String path = request.getParameter("path");
// DropboxFiles Service - https://api-content.dropbox.com/<version>/files/dropbox/<path>
DropboxService svc = new DropboxService(endpointName);
String href=buildHref(path,bean);
HandlerInputStream handler = new HandlerInputStream();
Object file;
try {
file = svc.get(href,handler).getData();
} catch (ClientServicesException e) {
throw new FacesExceptionEx(e, "Failed to execute proxy request");