if (ar != 0) return ar;
}
if (reference instanceof IClassPackageReference && compare instanceof IClassPackageReference) {
IClassPackageReference rcpr = (IClassPackageReference) reference;
IClassPackageReference ccpr = (IClassPackageReference) compare;
if (rcpr.getVersion() == null && ccpr.getVersion() == null) return 0;
if (rcpr.getVersion() == null) return -1;
if (ccpr.getVersion() == null) return 1;
int vr = rcpr.getVersion().compareTo(ccpr.getVersion());
if (vr != 0) return vr;
}
return 0;