{
validatorFactory = (ValidatorFactory)contextAwareValidatorFactory;
}
else
{
validatorFactory = new BeanAwareValidatorFactory(BeanValidationUtils.getDefaultValidatorFactory());
}
ExtValContext.getContext().addGlobalProperty(ValidatorFactory.class.getName(), validatorFactory, false);
}