String versionRangeStr = importAttribs.get(Constants.VERSION_ATTRIBUTE);
VersionRange versionRange = (versionRangeStr != null) ? new VersionRange(versionRangeStr) : new VersionRange("0");
for (ExportPackage export : matchingExports) {
String versionStr = export.getAttribs().get(Constants.VERSION_ATTRIBUTE);
Version version = (versionStr != null) ? new Version(versionStr) : new Version(0);
if (versionRange.includes(version)) {
selfImport = true;
break;
}
}
}