personValidationConfiguration.addPropertyRule("name", new DefaultValidationRule(Conditions.minLength("name", 5), "minLength"));
SimpleBeanValidationConfigurationLoader loader = new SimpleBeanValidationConfigurationLoader();
loader.setClassValidation(Person.class, personValidationConfiguration);
BeanValidator validator = new BeanValidator();
validator.setErrorCodeConverter(new ModelAwareErrorCodeConverter());
validator.setConfigurationLoader(loader);
Person person = new Person("Uri");
BindException errors = new BindException(person, "person");