XWIKI-8692: Add a cache to link extension id to document
Fix dependency issue