private function displaySuccess(Request $request,Response $response){
        $data=$response->getContent();
        if($data==null){
            $data=array();
        }
        $controllerName=str_replace('\\', '/', $request->getConfig()->getValue('class'));
        $methodName=$request->getConfig()->getValue('method');
        echo $this->twig->render($controllerName.'/'.$methodName.'.twig', $data);
    }