* @return whether to "go home" or not
*/
protected boolean initialize(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse resp) {
boolean gohome = false;
String webUsername = req.getUserPrincipal().getName().toLowerCase();
UserManagerBase userManagerBase = new UserManagerBase(DEFAULT_LOCALE,session); // use default locale to get user information; should not lead to localized messages anyhow
webUser = userManagerBase.getUserDetails(webUsername);
locale = validLocale(webUser, req);
if (locale != DEFAULT_LOCALE){
userManagerBase = new UserManagerBase(locale,session); // user manager with correct localization
}
setLocale(req, locale);
/* create menu once and store it in session (required because otherwise no menu is created when struts validation re-displays a page)
* menu is recreated if current locale differs from language in session (happens, when user switches language)
*/