protected function createPayload()
    {
        if (!$this->body) {
            return null;
        }

        if (!$this->serializer) {
            throw new UnConfiguredException('No serializer assigned, cannot build the payload.');
        }

        return $this->serializer->deserialize($this->body);
    }