// Temporary method... once cache store configs have been converted, this should go
public static void adapt(ClassLoader cl, ConfigurationBuilder builder, CacheLoaderConfig clc) {
CacheLoaderConfigurationBuilder<?, ?> loaderBuilder = null;
if (clc instanceof ClusterCacheLoaderConfig) {
ClusterCacheLoaderConfig cclc = (ClusterCacheLoaderConfig) clc;
ClusterCacheLoaderConfigurationBuilder cclBuilder = builder.loaders().addClusterCacheLoader();
cclBuilder.remoteCallTimeout(cclc.getRemoteCallTimeout());
loaderBuilder = cclBuilder;
} else if (clc instanceof FileCacheStoreConfig) {
FileCacheStoreConfig csc = (FileCacheStoreConfig) clc;
FileCacheStoreConfigurationBuilder fcsBuilder = builder.loaders().addFileCacheStore();