{
Set<Wire> wires = new HashSet<Wire>();
for (CandidateWiring candidateWiring : candidateBundle.getCandidateWirings())
{
wires.add(new Wire(candidateWiring.getPackageName(), candidateWiring.getExportDescription(), (BundleGeneration) candidateWiring.getCandidate().getGeneration()));
}
List<Solution.RequiredBundleWrapper> requiredBundles = new ArrayList<Solution.RequiredBundleWrapper>();
for (RequiredBundleWrapper requiredBundle : candidateBundle.getCandidateRequiredBundles())
{
BundleGeneration bundleGeneration = requiredBundle.getBundleGeneration();
for (ExportDescription description : bundleGeneration.getArchiveStore().getExportDescriptions())
{
for (String packageName : description.getPackageNames())
{
Wire wire = new Wire(packageName, description, bundleGeneration);
requiredBundles.add(new Solution.RequiredBundleWrapper(wire, requiredBundle.isReExport()));
}
}
}