issue #2404:replace LuaEngine::defaultEngine()  with  LuaEngine::getInstance()