Ported DownloadListener, added @throws annotation for methods that originally had throws clause on the Java source code.
mvn test passed.