private function updateBody()
    {
        $data = array('meta' => $this->metadata, 'results' => $this->data);

        $this->body = EntityBody::factory(
            $this->isContentType('json') ? json_encode($data) : http_build_query($data)
        );
    }