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 +
":" + o + "], which doesn't exist!");
}
}