@SuppressWarnings("resource")
	private static void copyFile(File sourceFile, File destFile) throws IOException {
        if(!destFile.exists()) {
            destFile.createNewFile();
        }
     
        FileChannel origin = null;
        FileChannel destination = null;
        try {
            origin = new FileInputStream(sourceFile).getChannel();
            destination = new FileOutputStream(destFile).getChannel();
     
            long count = 0;
            long size = origin.size();              
            while((count += destination.transferFrom(origin, count, size-count))<size);
        }
        finally {
            if(origin != null) {
                origin.close();
            }
            if(destination != null) {
                destination.close();
            }
        }
    }