((BundleDescriptionImpl) hosts[i]).addDependency(bundle);
((BundleDescriptionImpl) hosts[i]).addDependency(bundle, true);
	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);		// add dependecies for generics		GenericSpecification[] genericRequires = bundle.getGenericRequires();		if (genericRequires.length > 0) {			ArrayList genericSuppliers = new ArrayList(genericRequires.length);			for (int i = 0; i < genericRequires.length; i++) {				GenericDescription[] suppliers = genericRequires[i].getSuppliers();				if (suppliers != null)					for (int j = 0; j < suppliers.length; j++)						genericSuppliers.add(suppliers[j]);			}			bundle.addDependencies((BaseDescription[]) genericSuppliers.toArray(new BaseDescription[genericSuppliers.size()]));		}	}