GenericSpecification[] genericRequires = bundle.getGenericRequires(); if (genericRequires.length > 0) { ArrayList genericSuppliers = new ArrayList(genericRequires.length); for (int i = 0; i < genericRequires.length; i++) if (genericRequires[i].getSupplier() != null) genericSuppliers.add(genericRequires[i].getSupplier()); bundle.addDependencies((BaseDescription[]) genericSuppliers.toArray(new BaseDescription[genericSuppliers.size()])); }
	private void resolveConstraints(BundleDescriptionImpl bundle, BundleDescription[] hosts, ExportPackageDescription[] selectedExports, BundleDescription[] resolvedRequires, ExportPackageDescription[] resolvedImports) {		HostSpecificationImpl hostSpec = (HostSpecificationImpl) bundle.getHost();		if (hostSpec != null) {			if (hosts != null) {				hostSpec.setHosts(hosts);				for (int i = 0; i < hosts.length; i++)					((BundleDescriptionImpl) hosts[i]).addDependency(bundle);			}		}		bundle.setSelectedExports(selectedExports);		bundle.setResolvedRequires(resolvedRequires);		bundle.setResolvedImports(resolvedImports);		bundle.addDependencies(hosts);		bundle.addDependencies(resolvedRequires);		bundle.addDependencies(resolvedImports);	}