results.removeMessage(message);
}
}
protected void constraintViolated(PropertyConstraint exp, PropertyResults propertyResults) {
ValidationMessage message = new DefaultValidationMessage(exp.getPropertyName(), Severity.ERROR,
messageTranslator.getMessage(propertyResults));
ValidationMessage oldMessage = (ValidationMessage) validationErrors.get(exp);
if (!message.equals(oldMessage)) {
results.removeMessage(oldMessage);
validationErrors.put(exp, message);
results.addMessage(message);
}