Set<InvalidConstraint<?>> constraints = validator.validateValue(memberName, proposed);
return asString(memberName, constraints);
}
private Validator<?> getTargetValidator(final ValidityContext<? extends ValidityEvent> validityContext) {
final ObjectAdapter targetNO = validityContext.getTarget();
final Object targetObject = targetNO.getObject();
final Class<?> cls = targetObject.getClass();
return ValidationProviderFactory.createValidator(cls);
}