if (this.cmsContext != null) {
defaultLocale = this.cmsContext.getDefaultLocale();
List<Locale> locales = this.cmsContext.getLocales();
if (this.cmsContext != null) {
defaultLocale = this.cmsContext.getDefaultLocale();
List<Locale> locales = this.cmsContext.getLocales();
localeChoice = new LocaleChoice(locales, defaultLocale);
} else {
defaultLocale = Locale.getDefault();
localeChoice = new LocaleChoice(locales, defaultLocale);
} else {
defaultLocale = Locale.getDefault();
loginContext = new LoginContext(CmsAuth.LOGIN_CONTEXT_USER, subject, this);
loginContext.login();
cmsView.authChange(loginContext);
loginContext = new LoginContext(CmsAuth.LOGIN_CONTEXT_USER, subject, this);
loginContext.login();
cmsView.authChange(loginContext);