registry.afterPropertiesSet();
DefaultXmlBeanValidationConfigurationLoader loader = new DefaultXmlBeanValidationConfigurationLoader();
loader.setResource(new ClassPathResource("validation.xml", getClass()));
loader.setElementHandlerRegistry(registry);
loader.afterPropertiesSet();
BeanValidator validator = new BeanValidator(loader);
validator.setErrorCodeConverter(new ModelAwareErrorCodeConverter());
Person person = new Person("Uri");