/** * Enables or disables language fall back * * <p> * * @param httpRequest current request * @param enabled enabled or disabled */ protected void setFallbackLanguage(final HttpServletRequest httpRequest, final Boolean enabled) { final SessionService sessionService = getSessionService(); if (sessionService != null) { sessionService.setAttribute(LocalizableItem.LANGUAGE_FALLBACK_ENABLED, enabled); sessionService.setAttribute( AbstractItemModel.LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, enabled); } }
@Override public ConfigurationProvider getProvider() { ConfigurationProvider provider = sessionService.getAttribute(SESSION_CACHE_KEY); if (provider == null) { provider = createProviderInstance(); sessionService.setAttribute(SESSION_CACHE_KEY, provider); } return provider; }