HashMap<String, IInstallableUnit> iuMap = new HashMap<String, IInstallableUnit>();
for (FeatureInfo featureInfo : features) {
Collector collector = new Collector();
Query query = new InstallableUnitQuery(featureInfo.getFeatureID(),
new VersionRange(Version.create(featureInfo.getFeatureVersion()),
true, Version.create(featureInfo.getFeatureVersion()), true));
collector = RepositoryUtils.getInstallableUnitsInRepositories(null, query, collector, null);
IInstallableUnit[] units = (IInstallableUnit[]) collector.toArray(IInstallableUnit.class);