/** * Reads the locale from the session, and if not found from the * current invocation (=browser) * * @param invocation the current invocation * @param session the current session * @return the read locale */ protected Locale readStoredLocale(ActionInvocation invocation, Map<String, Object> session) { Locale locale = this.readStoredLocalFromSession(invocation, session); if (locale != null) { return locale; } return this.readStoredLocalFromCurrentInvocation(invocation); }