/**
  * Checks whether the given class is supported for denormalization by this normalizer.
  *
  * @param mixed $data Data to denormalize from.
  * @param string $type The class to which the data should be denormalized.
  * @param string $format The format being deserialized from.
  *
  * @return bool
  */
 public function supportsDenormalization($data, $type, $format = null)
 {
     if ($format == "xml" && $type == Country::GetClassName()) {
         return true;
     }
     return false;
 }
 private function denormalizeCountry($data)
 {
     return $this->serializer->denormalize($data['country'], Country::GetClassName(), $this->format, $this->context);
 }