As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Use CMIS to do this. Here is a gist that shows a groovy example that leverages OpenCMIS which you can also use from Java.