if (loader instanceof LegacyLoaderAdapter<?>) {
return ((LegacyLoaderAdapter<?>)loader).adapt();
} else if (loader instanceof CacheStoreConfiguration) {
if (loader instanceof LegacyStoreConfiguration) {
LegacyStoreConfiguration store = (LegacyStoreConfiguration) loader;
CacheLoader cacheStore = store.cacheStore(); // TODO: in 6.0, as we deprecate the LegacyConfigurationLoader#cacheLoader() method, narrow this type to CacheStore
clc = getLoaderConfig(loader, cacheStore);
}
CacheStoreConfig csc = (CacheStoreConfig) clc;
CacheStoreConfiguration store = (CacheStoreConfiguration) loader;
adapt(store, csc);
} else if (loader instanceof LegacyLoaderConfiguration) {
CacheLoader cacheLoader = ((LegacyLoaderConfiguration) loader).cacheLoader();
clc = getLoaderConfig(loader, cacheLoader);
}
if (clc instanceof AbstractCacheStoreConfig) {
AbstractCacheStoreConfig acsc = (AbstractCacheStoreConfig) clc;
Properties p = loader.properties();