InvocationContextContainer icc, GlobalConfiguration globalCfg) {
log.debug("Using JBoss Marshalling");
this.externalizerTable = externalizerTable;
baseCfg.setObjectTable(externalizerTable);
ClassResolver classResolver = globalCfg.getClassResolver();
if (classResolver == null) {
// Override the class resolver with one that can detect injected
// classloaders via AdvancedCache.with(ClassLoader) calls.
classResolver = new EmbeddedContextClassResolver(cl, icc);
}