parseStoreChildren(reader, scb);
} else if (loader instanceof ClusterCacheLoader) {
ClusterCacheLoaderConfigurationBuilder cclb = builder.loaders().addClusterCacheLoader();
parseLoaderChildren(reader, cclb);
} else if (loader instanceof CacheLoader) {
LegacyLoaderConfigurationBuilder lcb = builder.loaders().addLoader();
lcb.cacheLoader((CacheLoader)loader);
parseLoaderChildren(reader, lcb);
} else {
throw log.invalidCacheLoaderClass(loader.getClass().getName());
}
}