/** * @return mixed * @throws \Exception If deserialization fails */ public function getResponse() { if ($this->responseDeserializationError) { return null; } if (is_null(parent::getResponse()) && !is_null($this->serializedResponse)) { try { parent::setResponse(static::getSerializationHelper()->deserializeReturnValue($this->getType(), $this->serializedResponse)); } catch (\Exception $e) { $this->responseDeserializationError = true; throw $e; } } return parent::getResponse(); }