for (Candidate candidate : checkPoint.getUnused())
{
if (candidate instanceof Resolved)
{
Resolved resolved = (Resolved) candidate;
Generation generation = resolved.getBundleGeneration();
for (ExportDescription exportDescription : generation.getArchiveStore().getExportDescriptions())
{
for (String exportPackage : exportDescription.getPackageNames())
{
if (importPackage.equals(exportPackage))
{
results.add(new ExportDescriptionWrapper(exportDescription, candidate));
break;
}
}
}
}
else
{
UnBound unBound = (UnBound) candidate;
Generation generation = unBound.getToBeResolved();
for (ExportDescription exportDescription : generation.getArchiveStore().getExportDescriptions())
{
for (String exportPackage : exportDescription.getPackageNames())
{
if (importPackage.equals(exportPackage))
{