}
IVersion version = this.getVersion(pkg.getGroupId(), pkg.getArtifactId(), id, null);
if (version == null) {
this.packages.put(id, pkg);
} else if (version.compareTo( pkg.getVersion() ) < 0) {
IClassPackage old = this.packages.get(id);
if (this.isPrimaryPackage(pkg, this)) {
conflicts.add(pkg);
log.info("Canceling upgrade for primary " + old + " [new: " + pkg + "]");