for (CandidateBundle candidate : checkPoint.getUsed())
{
if (candidate instanceof Resolved)
{
Resolved resolvedHost = (Resolved) candidate;
BundleGeneration bundleGeneration = resolvedHost.getBundleGeneration();
if (requireDescription.getSymbolName().equals(bundleGeneration.getSymbolicName()))
{
if (prameters.containsKey(Constants.BUNDLE_VERSION_ATTRIBUTE))
{
VersionRange range = (VersionRange) prameters.get(Constants.BUNDLE_VERSION_ATTRIBUTE);
if (range.includes(bundleGeneration.getVersion()))
{
result.add(candidate);
}
}
else
{
result.add(candidate);
}
}
}
else if (candidate instanceof UnBound)
{
assert false;
}
else
{
BoundHost bound = (BoundHost) candidate;
BundleGeneration bundleGeneration = bound.getBundleGeneration();
if (requireDescription.getSymbolName().equals(bundleGeneration.getSymbolicName()))
{
if (prameters.containsKey(Constants.BUNDLE_VERSION_ATTRIBUTE))
{
VersionRange range = (VersionRange) prameters.get(Constants.BUNDLE_VERSION_ATTRIBUTE);
if (range.includes(bundleGeneration.getVersion()))
{
result.add(candidate);
}
}
else