private function createResponse($data) { return (new HttpFoundationFactory())->createResponse($this->addHeaders($data)); }