@Override
public void init(InitializationContext ctx) {
this.ctx = ctx;
configuration = ctx.getConfiguration();
loader = configuration.getLoader();
CacheLoaderConfig cacheLoaderConfig = instantiateCacheLoaderConfig(loader.getClass());
XmlConfigHelper.setValues(cacheLoaderConfig, configuration.properties(), false, true);
try {
loader.init(cacheLoaderConfig, ctx.getCache(), new StreamingMarshallerAdapter(ctx.getMarshaller()));
} catch (CacheLoaderException e) {
throw newCacheLoaderException(e);