The code below works fine from within FB3 Trial.
When deployed to localhost Tomcat server it fails to download
with security sandbox error.
You need to include google api library to compile this.
I have asked this question a few times, I hope now with the
example I am more precise.