cache.put(locator, key, incoming);
boolean differs = existing != null && !incoming.equals(existing);
if (differs) {
if (key.equals(MetricMetadata.UNIT.name().toLowerCase())) {
return new IncomingUnitException(locator, existing, incoming);
} else {
return new IncomingTypeException(locator, existing, incoming);
}
}
} finally {