I wanted to wire a RegionFactory through spring. So I created a bean and put it in the service registry. But the region factory is taken from the settings and SettingsFactory#createRegionFactory always creates an instance from a static class name instead of checking the registry.