Remove the use of the MainSessionController to get the current user behind the HTTP session as well its favorite language (id est the language in its preferences) and use instead UserDetail.