public void registerCustomEditors(PropertyEditorRegistry registry) {
for (Class<?> domainClass : repositories) {
RepositoryInformation repositoryInformation = repositories.getRepositoryInformationFor(domainClass);
RepositoryInvoker invoker = repositoryInvokerFactory.getInvokerFor(domainClass);
DomainClassPropertyEditor<Object, Serializable> editor = new DomainClassPropertyEditor<Object, Serializable>(
invoker, repositories.getEntityInformationFor(repositoryInformation.getDomainType()), registry);
registry.registerCustomEditor(repositoryInformation.getDomainType(), editor);