public function getFreshApplicationToServe(DuskServer $server)
    {
        static::$server = $server;

        $this->setUpDuskServer();

        $serializedClosure = static::$server->getStash('tweakApplication');

        if ($serializedClosure) {
            $closure = unserialize($serializedClosure)->getClosure();
            $closure($this->app);
        }

        return $this->app;
    }