public static void downloadDependencies (IClassPackageResolver resolver, ClassPackageResolverNetworkNode... download) {
boolean success = false;
IClassPackageDownloadAuthorizer cpa = null;
switch (ClassPackageContext.getDownloadAuthorization()) {
case APPROVAL:
IBasicUserInterface bui = UserInterfaceContext.getUserInterface();
if (bui != null) {
cpa = bui.getTool(IClassPackageDownloadAuthorizer.class);
}
if (cpa == null) cpa = new SimpleDownloadAuthorizer(2);
if (!cpa.authorize(download)) break;