baseCfg.setClassExternalizerFactory(new SerializeWithExtFactory());
proxy = new ExternalizerTableProxy(externalizerTable);
baseCfg.setObjectTable(proxy);
ClassResolver classResolver = globalCfg.serialization().classResolver();
if (classResolver == null) {
// Override the class resolver with one that can detect injected
// classloaders via AdvancedCache.with(ClassLoader) calls.
ClassLoader cl = Configurations.getClassLoader(cfg, globalCfg);
classResolver = new EmbeddedContextClassResolver(cl, icc);