if (bus != null) {
confName = bus.getId();
}
cacheManager = EHCacheManagerHolder.getCacheManager(confName, configFileURL);
// Cannot overflow to disk as SecurityToken Elements can't be serialized
@SuppressWarnings("deprecation")
CacheConfiguration cc = EHCacheManagerHolder.getCacheConfiguration(key, cacheManager)
.overflowToDisk(false); //tokens not writable
Ehcache newCache = new Cache(cc);
cache = cacheManager.addCacheIfAbsent(newCache);
// Set the TimeToLive value from the CacheConfiguration
ttl = cc.getTimeToLiveSeconds();
}