public function output(\Neos\Flow\Aop\JoinPointInterface $joinPoint) {

        /** @var ActionController $controller */
        $controller = $joinPoint->getProxy();
        $view = ObjectAccess::getProperty($controller, 'view', true);

        /** @var \Neos\Flow\Http\Response $response */
        $response = $controller->getControllerContext()->getResponse();

        if($view instanceof JsendView) {
            $view->assign('redirectTo', $joinPoint->getMethodArgument('uri'));
            $response->setContent($view->render());
            throw new \Neos\Flow\Mvc\Exception\StopActionException();
        } else {
            return $joinPoint->getAdviceChain()->proceed($joinPoint);
        }
    }