result.setAttributes(getAttributes(importPackage, DEFINED_MATCHING_ATTRS));
if (manifestVersion >= 2) result.setAttributes(getAttributes(importPackage, DEFINED_MATCHING_ATTRS));
	private static void addImportPackages(ManifestElement importPackage, ArrayList allImports, int manifestVersion, boolean dynamic) throws BundleException {		String[] importNames = importPackage.getValueComponents();		for (int i = 0; i < importNames.length; i++) {			// do not allow for multiple imports of same package of manifest version < 2			if (manifestVersion < 2) {				Iterator iter = allImports.iterator();				while (iter.hasNext())					if (importNames[i].equals(((ImportPackageSpecification) iter.next()).getName()))						iter.remove();			}			ImportPackageSpecificationImpl result = new ImportPackageSpecificationImpl();			result.setName(importNames[i]);			// set common attributes for both dynamic and static imports			String versionString = importPackage.getAttribute(Constants.VERSION_ATTRIBUTE);			if (versionString == null) // specification-version aliases to version				versionString = importPackage.getAttribute(Constants.PACKAGE_SPECIFICATION_VERSION);			result.setVersionRange(getVersionRange(versionString));			result.setBundleSymbolicName(importPackage.getAttribute(Constants.BUNDLE_SYMBOLICNAME_ATTRIBUTE));			result.setBundleVersionRange(getVersionRange(importPackage.getAttribute(Constants.BUNDLE_VERSION_ATTRIBUTE)));			result.setAttributes(getAttributes(importPackage, DEFINED_MATCHING_ATTRS));			if (dynamic) {				result.setDirective(Constants.RESOLUTION_DIRECTIVE, ImportPackageSpecification.RESOLUTION_DYNAMIC);			} else {				result.setDirective(Constants.RESOLUTION_DIRECTIVE, getResolution(importPackage.getDirective(Constants.RESOLUTION_DIRECTIVE)));			}			allImports.add(result);		}	}