public synchronized CacheManager getCacheManager() throws CacheException {
if (_cacheManager == null) {
Configuration config = new Configuration();
DiskStoreConfiguration diskConfig = new DiskStoreConfiguration();
diskConfig.setPath(getTempDir().getPath());
config.addDiskStore(diskConfig);
CacheConfiguration defaultConfig = new CacheConfiguration();
defaultConfig.setMaxElementsInMemory(10000);
defaultConfig.setEternal(false);