@Override public void downloadStarted(ClassPackageResolverNetworkNode download) {
System.out.println("Downloading " + download.getReference() + " from " + download.getRemote().getRepositoryURL());
}
@Override public boolean downloadError(ClassPackageResolverNetworkNode download, Throwable error) {
DownloadAuthorization da = ClassPackageContext.getDownloadAuthorization();
if (da == DownloadAuthorization.AUTOMATIC) {
Integer dat = attempts.get(download);
if (dat == null) dat = 0;
attempts.put(download, dat = dat + 1);