static O unstructureInRealm(S s, fO realm) { Class mc = mainClass(realm); printVars unstructureInRealm(+mc); O classFinder = func(S name) { print("classFinder in realm: " + name); O result = getClass_noConvertName(realm, name); print("result: " + result); ret result; }; // notify module that we are loading (old) temp tempSetTL((ThreadLocal) callOpt(mc, 'dynamicObjectIsLoading_threadLocal), true); // because this is now global anyway temp tempSetTL(dynamicObjectIsLoading_threadLocal(), true); ret unstructure(s, false, classFinder); }