/**
  * @param Application $application
  * @param IResponse $response
  */
 public function process(Application $application, IResponse $response)
 {
     if ($response instanceof JsonResponse) {
         $response->setPostProcessor([$this, 'decorate']);
         $response->setContentType("text/html; charset=utf-8");
     }
 }