@@ -0,0 +1,724 @@
+package org.opencb.commons.utils;%0A%0Aimport java.io.File;%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.net.URL;%0Aimport java.nio.file.Files;%0Aimport java.nio.file.Path;%0Aimport java.nio.file.StandardCopyOption;%0A%0Apublic class URLUtils %7B%0A%0A    public static File download(URL url, Path outDir) throws IOException %7B%0A        return download(url, outDir.resolve(new File(url.getFile()).getName()).toFile());%0A    %7D%0A%0A    public static File download(URL url, File outFile) throws IOException %7B%0A        InputStream in = url.openStream();%0A        Files.copy(in, outFile.toPath(), StandardCopyOption.REPLACE_EXISTING);%0A        if (outFile.exists()) %7B%0A            return outFile;%0A        %7D%0A        return null;%0A    %7D%0A%7D%0A

add URLUtils, #44