public static void openRemoteExternalFile(final MetaData metaData,
final String link, final ExternalFileType fileType) {
File temp = null;
try {
temp = File.createTempFile("jabref-link", "."+fileType.getExtension());
temp.deleteOnExit();
System.out.println("Downloading to '"+temp.getPath()+"'");
URLDownload ud = new URLDownload(null, new URL(link), temp);
ud.download();
System.out.println("Done");
} catch (MalformedURLException ex) {