change catch Exception to catch XWikiException in MenuAccessService