protected void processValidate(Object target, Object propertyValue, Errors errors) {
if (!creditCard) {
return;
}
CreditCardValidator validator = new CreditCardValidator();
if (!validator.isValid(propertyValue.toString())) {
Object[] args = new Object[] { constraintPropertyName, constraintOwningClass, propertyValue };
rejectValue(target, errors, ConstrainedProperty.DEFAULT_INVALID_CREDIT_CARD_MESSAGE_CODE,
ConstrainedProperty.CREDIT_CARD_CONSTRAINT + ConstrainedProperty.INVALID_SUFFIX, args);
}
}