}
if (validator != null)
{
boolean validated = (mapping.internalName != null ?
validator.validate(mapping.internalName, value) :
validator.validate(name, value));
if (!validated)
{
throw new IllegalArgumentException(LOCALISER.msg("008012", name, value));
}