public static File download(final String source) throws DownloadException {
File file = null;
InputStream is = null;
OutputStream os = null;
try {
is = new HttpResolver().resolve(source);
try {
file = File.createTempFile("dload", ".fil");
} catch (final Throwable e) {
final File tmp = new File("tmp");
if (!tmp.exists() && !tmp.mkdirs()) {