private File downloadMirrorList() {
URLRepository urlRepository = new URLRepository();
if (getEventManager() != null) {
urlRepository.addTransferListener(getEventManager());
}
URLResource mirrorResource = new URLResource(mirrorListUrl);
CacheResourceOptions options = new CacheResourceOptions();
ArtifactDownloadReport report = getRepositoryCacheManager().downloadRepositoryResource(
mirrorResource, "mirrorlist", "text", "txt", options, urlRepository);
return report.getLocalFile();
}