Change call from ApplicationManagerPluginApi.getRootApplication(XWikiContext) to ApplicationManagerPluginApi.getRootApplication introduced by XAAM-7