ServiceLocator locator = getServiceLocator(request);
if (tileContext.getAttribute("action").equals("save")) {
LOG.info("save");
Preferences p = Preferences.parse(request.getQueryString(), "&", "=");
LOG.info("setting cookie");
Preferences.setPreferencesCookie(request, response, p);
LOG.info("setting attribute");
request.setAttribute("preferences", p);
} else {