@@ -0,0 +1,706 @@
+package org.opencb.opencga.analysis;%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 ResourceUtils %7B%0A%0A    public static void download(URL url, Path outDir) throws IOException %7B%0A        InputStream in = url.openStream();%0A        Files.copy(in, outDir.resolve(new File(url.getFile()).getName()), StandardCopyOption.REPLACE_EXISTING);%0A    %7D%0A%0A    public static void download(URL url, File outFile) throws IOException %7B%0A        InputStream in = url.openStream();%0A        Files.copy(in, outFile.toPath(), StandardCopyOption.REPLACE_EXISTING);%0A    %7D%0A%7D%0A

add ResourceUtils and implement the method 'download', #1508