void (TransferEvent event) { checkCanceled(); String resourceName = event.getResource().getName(); DownloadData data = new DownloadData(event.getWagon().getRepository().getName(), event.getResource().getContentLength()); myDownloads.put(resourceName, data); updateProgress(resourceName, data); }