themeCacheKey = cache.createSessionKey(requestContext); theme = (Theme) requestContext.getSessionAttribute(themeCacheKey); themeCacheKey = cache.createSessionKey(requestContext); requestContext.getRequest().getSession().removeAttribute(themeCacheKey);