return;
}
// clean up old cache files when loading a new SC cache manager
cleanUpCacheFiles();
CacheRegistry caches = AppContext.getCacheRegistry();
// create necessary caches (from ENUM)
for (SC_CACHE_TYPE cacheType : SC_CACHE_TYPE.values()) {
ISCCache<?> cache = SCCacheFactory.createDefaultSCCache(cacheConfiguration, cacheType);
caches.addCache(cacheType.name(), cache);
}
metaDataCache = (ISCCache<SCCacheMetaEntry>) caches.getCache(SC_CACHE_TYPE.META_DATA_CACHE.name());
dataCache = (ISCCache<SCMPMessage>) caches.getCache(SC_CACHE_TYPE.DATA_CACHE.name());
}