[CXF-5996] Better support for reading caching various entity types