void (TransferEvent event) { checkCanceled(); String resourceName = event.getResource().getName(); DownloadData data = myDownloads.remove(resourceName); if (data != null) { data.failed = true; updateProgress(resourceName, data); } }