// the old preferences still remain in a site cookie.
public static void reloadPreferences( PageContext pageContext )
{
Preferences prefs = new Preferences();
Properties props = PropertyReader.loadWebAppProps( pageContext.getServletContext() );
WikiContext ctx = WikiContext.findContext( pageContext );
prefs.put("SkinName", TextUtil.getStringProperty( props, "jspwiki.defaultprefs.template.skinname", "PlainVanilla" ) );
prefs.put("DateFormat",
TextUtil.getStringProperty( props,
"jspwiki.defaultprefs.template.dateformat",
ctx.getEngine().getInternationalizationManager().get( InternationalizationManager.CORE_BUNDLE,
getLocale( ctx ),
"common.datetimeformat" ) ) );
prefs.put("TimeZone", TextUtil.getStringProperty( props, "jspwiki.defaultprefs.template.timezone",
java.util.TimeZone.getDefault().getID() ) );