please include class DynamicObject. static bool dynamicObjectIsLoading() { ret isTrue(getThreadLocal(DynamicObject_loading)); }