return;
}
// process composed constraints
if (isReportAsSingleViolation()) {
BeanValidationContext gctx = (BeanValidationContext) context;
ConstraintValidationListener oldListener =
((ConstraintValidationListener) gctx.getListener());
ConstraintValidationListener listener =
new ConstraintValidationListener(oldListener.getRootBean(), oldListener.getRootBeanType());
gctx.setListener(listener);
try {
for (ConstraintValidation composed : getComposingValidations()) {
composed.validate(context);
}
} finally {
gctx.setListener(oldListener);
}
// Restore current constraint validation
context.setConstraintValidation(this);