public function dispatch(Request $request, Response $response, $finalHandler = null)
    {
        /** @var AbstractPackage $package */
        $package = $this->getPackage();

        if (!$package) {
            throw new RouteNotFoundException('Can not find package to execute.', 404);
        }

        return $package->execute($request->getAttribute('_controller'), $request, $response);
    }