Object o = defaultConstraints.get(sharedConstraintReference);
if (o instanceof Map) {
@SuppressWarnings({ "unchecked", "rawtypes" })
Map<String, Object> constraintsWithinSharedConstraint = (Map) o;
for (Map.Entry<String, Object> e : constraintsWithinSharedConstraint.entrySet()) {
constrainedProperty.applyConstraint(e.getKey(), e.getValue());
}
} else {
throw new GrailsConfigurationException("Property [" +
constrainedProperty.getOwner().getName() + '.' + propertyName +
"] references shared constraint [" + sharedConstraintReference +