protected function _beforeSend(DispatcherContext $context)
    {
        $response = $context->response;
        $request  = $context->request;

        if($response->isSuccess() && $referrer = $request->getReferrer()) {
            $response->setRedirect($referrer);
        }
    }