if (!hasImportedPackages || importedPackages == null) { hasImportedPackages = true;
if (importedPackages == null) {
	private void addImportedPackages(PackageSpecification[] packages) {		if (packages != null && packages.length > 0) {			if (!hasImportedPackages || importedPackages == null) {				hasImportedPackages = true;				importedPackages = new KeyedHashSet();			}			for (int i = 0; i < packages.length; i++) {				SingleSourcePackage packagesource = (SingleSourcePackage) bundle.framework.packageAdmin.exportedPackages.getByKey(packages[i].getName());				if (packagesource != null) {					importedPackages.add(packagesource);				}			}		}	}