if (range != null) {
for (Bundle bundle : allBundles) {
Version oldV = bundle.getVersion();
if (bundle.getBundleId() != 0 && stripSymbolicName(sn).equals(stripSymbolicName(bundle.getSymbolicName())) && range.contains(oldV)) {
String location = history.getLocation(bundle);
BundleUpdate update = new BundleUpdateImpl(sn, v.toString(), url, oldV.toString(), location);
updates.add(update);
// Merge result
BundleUpdate oldUpdate = allUpdates.get(sn);
if (oldUpdate != null) {
Version upv = VersionTable.getVersion(oldUpdate.getNewVersion());
if (upv.compareTo(v) < 0) {
allUpdates.put(sn, update);
toUpdate.put(bundle, url);
}
} else {