Javadoc
Replace an item type, where necessary, by one that can safely be stored in the cache
without causing garbage collection problems. Specifically, a SameNameTest cannot be stored
in the cache because it contains a reference to a node in a document.