Your Java code download should start in 2 seconds.
If it does not, please try http://www.docjar.com/src/api/org/apache/webdav/lib/util/MIME2Java.java.