result.setUses(exportPackage.getDirectives(Constants.USES_DIRECTIVE));
result.setUses(ManifestElement.getArrayFromList(exportPackage.getDirective(Constants.USES_DIRECTIVE)));
	private static void addExportPackages(ManifestElement exportPackage, ArrayList allExports, int manifestVersion, boolean reexported) throws BundleException {		String[] exportNames = exportPackage.getValueComponents();		for (int i = 0; i < exportNames.length; i++) {			ExportPackageDescriptionImpl result = new ExportPackageDescriptionImpl();			result.setName(exportNames[i]);			String versionString = manifestVersion < 2 ? exportPackage.getAttribute(Constants.PACKAGE_SPECIFICATION_VERSION) : exportPackage.getAttribute(Constants.VERSION_ATTRIBUTE);			if (versionString != null)				result.setVersion(Version.parseVersion(versionString));			// alway setting the grouping here even for manifestVersion==1 because if it is null			// the result will return a grouping equal to the package name which is unique and will			// give the same behavior as OSGi R3.			// TODO remove grouping !!!			result.setGrouping(exportPackage.getDirective(Constants.GROUPING_DIRECTIVE));			result.setUses(exportPackage.getDirectives(Constants.USES_DIRECTIVE));			// set the rest of the attributes			result.setInclude(exportPackage.getDirective(Constants.INCLUDE_DIRECTIVE));			result.setExclude(exportPackage.getDirective(Constants.EXCLUDE_DIRECTIVE));			result.setAttributes(getAttributes(exportPackage,DEFINED_MATCHING_ATTRS));			result.setMandatory(ManifestElement.getArrayFromList(exportPackage.getDirective(Constants.MANDATORY_DIRECTIVE)));			result.setRoot(!reexported);			allExports.add(result);		}	}