Dependency Handler

Just hook into it use DependencyHandler.download(url, file, overwrite)