Better fix (only one method use getXWikiContext)