add logging to XWikiXWikiPreferences checkXWikiPreferences method