ArtifactVersion upperVersion = null;
if (upperBound.length() > 0) {
upperVersion = getArtifactVersion(label, upperBound);
}
if (upperVersion != null & lowerVersion != null && upperVersion.compareTo(lowerVersion) < 0) {
throw new InvalidVersionSpecificationException("Range defies version ordering: " + spec);
}
restriction = new Restriction(lowerVersion, lowerBoundInclusive, upperVersion, upperBoundInclusive);
}