for (Iterator i = permImports.iterator(); i.hasNext(); ) { ImportPkg ip = (ImportPkg)i.next(); if (ip.provider == null) { i.remove(); } }
  boolean resolvePackages() {    ArrayList permImports = new ArrayList(imports.size());    failReason = bundle.framework.perm.missingMandatoryPackagePermissions(this, permImports);    if (failReason != null) {      return false;    }    failReason = bundle.framework.packages.resolve(bundle, permImports.iterator());    if (failReason == null) {      okImports = permImports;      return true;    } else {      return false;    }  }