private Cache cache;
public void init(ServletContext servletContext) {
try {
CacheManager cacheManager = CacheManager.getInstance();
Map<String, String> env = new ServletContextInitMap(servletContext);
CacheFactory cacheFactory = cacheManager.getCacheFactory(env);
this.cache = cacheFactory.createCache(env, this, this);
servletContext.setAttribute(EVENTS_MANAGER_KEY, this);
} catch (CacheException e) {
throw new FacesException(e.getMessage(), e);