public function deserializeReturnValue($type, $data)
    {
        $jobType = $this->registry->get($type);

        return $this->serializer->deserialize($data, $jobType->getReturnType(), 'json', $this->getResponseDeserializationContext($jobType));
    }