public boolean validate(Context context) {
for (Validator validator : getValidators()) {
if (validator instanceof When) {
When when = (When) validator;
Condition cond = when.condition;
if (cond.isSatisfied(context)) {
return when.validateInChoose(context);
}
} else if (validator instanceof Otherwise) {
Otherwise ow = (Otherwise) validator;
return ow.validateInChoose(context);