I was needing to override `JCacheRegionFactory` in order to provide another class loader.
I ended up having to copy the code from `resolveCacheManager` to achieve what I wanted.
So here is a PR giving some more flexibility.