public void cancelService(String key) { DownloadService ds = serviceMap.remove(key); if (ds != null) { ds.cancelDownload(); } }