definition.addRegistryInitializationListener(infrastructureHolder);
RegistryBuilder.constructRegistry(definition, _errorHandler, _locale);
// Now the RegistryInfrastructureHolder has access to the registry
return new TypedRegistryImpl(null, infrastructureHolder.getInfrastructure());
}