private static File download(String url) throws IOException {
		File file = new File(FileUtils.getTempDirectory(), getFileName(url));
		URL uri = new URL(url);
		DataInputStream dis = new DataInputStream(uri.openStream());
		FileOutputStream fos = new FileOutputStream(file);
		byte[] buffer = new byte[1024];
		int length;
		while ((length = dis.read(buffer)) > 0) {
			fos.write(buffer, 0, length);
		}
		dis.close();
		fos.close();
		return file;
	}