protected function createResponse($data, $statusCode) { return $this->response = new RestResponse($this, $data, $statusCode); }