//Check whether the minimum equals the expected version range minimum
{
Version currentMin = entries.get( 0 ).getVersionRange().getMin();
if ( !currentMin.equals( sourceVersionRange.getMin() ) ) {
throw new VersionMismatchException( sourceVersionRange.getMin(), currentMin, "Lower border of source range not mapped: " );
}
}
//Verify the last entry. Does the max version range fit?
{
Entry last = entries.get( entries.size() - 1 );
Version currentMax = last.getVersionRange().getMax();
if ( !currentMax.equals( sourceVersionRange.getMax() ) ) {
throw new VersionMismatchException( sourceVersionRange.getMax(), currentMax, "Upper border of source range not mapped: " );
}
}
}