ok, I see it in ApplicationProcessManager::RunMainDocument