ImportRegistry as a package-visible top-level interface which can easily be shared within the package

Issue: SPR-12128
Cache.get(key, type) explicitly defines an IllegalStateException in case of a type mismatch

Issue: SPR-12145