void (TransferEvent event) { MavenServerGlobals.getDownloadListener().artifactDownloaded(event.getLocalFile(), event.getResource().getName()); checkCanceled(); String resourceName = event.getResource().getName(); DownloadData data = myDownloads.remove(resourceName); data.finished = true; updateProgress(resourceName, data); }