/**
  *Deserialize an object with the given type signature.
  * 
  * @throws SerializationException
  * @param string $typeSignature  the type signature to deserialize
  * @return Object the deserialized object
  */
 protected function deserialize($typeSignature)
 {
     $this->logger->info("deserialize :" . $typeSignature);
     $serializedInstRef = SerializabilityUtil::decodeSerializedInstanceReference($typeSignature);
     $this->logger->info("serializedInstRef : " . $serializedInstRef->getName() . " " . $serializedInstRef->getSignature());
     /*MappedClass*/
     $instanceClass = $this->mappedClassLoader->loadMappedClass($serializedInstRef->getName());
     $instanceClass->setCRC($serializedInstRef->getSignature());
     $this->serializationPolicy->validateDeserialize($instanceClass);
     // {90%}
     $this->validateTypeVersions($instanceClass, $serializedInstRef);
     // {cut}
     // Class customSerializer = SerializabilityUtil.hasCustomFieldSerializer(instanceClass);
     // instance = instantiate(customSerializer, instanceClass);
     // rememberDecodedObject(instance);
     $customSerializer = SerializabilityUtil::hasCustomFieldSerializer($instanceClass);
     // {100%}
     $instance = $this->instantiate($customSerializer, $instanceClass);
     // {100%}
     $this->rememberDecodedObject(&$instance);
     $this->deserializeImpl($customSerializer, $instanceClass, &$instance);
     return $instance;
     //$instance = $customSerializer->instantiate($this);
     //$instance = $this->deserializeImpl($customSerializer, $serializedInstRef->getName());
     //$instance = $this->deserializeImpl($customSerializer, $serializedInstRef->getName(), $instance);
     //return $instance;
 }
 /**
  *Deserialize an object with the given type signature.
  * 
  * @throws SerializationException
  * @param string $typeSignature  the type signature to deserialize
  * @return Object the deserialized object
  */
 protected function deserialize($typeSignature)
 {
     $this->logger->debug("deserialize :" . $typeSignature);
     $serializedInstRef = SerializabilityUtil::decodeSerializedInstanceReference($typeSignature);
     $this->logger->debug("serializedInstRef : " . $serializedInstRef->getName() . " " . $serializedInstRef->getSignature());
     /*MappedClass*/
     $instanceClass = $this->mappedClassLoader->loadMappedClass($serializedInstRef->getName());
     $instanceClass->setCRC($serializedInstRef->getSignature());
     assert($this->serializationPolicy !== null);
     $this->serializationPolicy->validateDeserialize($instanceClass);
     // {90%}
     $this->validateTypeVersions($instanceClass, $serializedInstRef);
     // {cut}
     // Class customSerializer = SerializabilityUtil.hasCustomFieldSerializer(instanceClass);
     // instance = instantiate(customSerializer, instanceClass);
     // rememberDecodedObject(instance);
     $customSerializer = SerializabilityUtil::hasCustomFieldSerializer($instanceClass);
     // {100%}
     $index = $this->reserveDecodedObjectIndex();
     $instance = $this->instantiate($customSerializer, $instanceClass);
     // {100%}
     $this->rememberDecodedObject($index, $instance);
     $replacement = $this->deserializeImpl($customSerializer, $instanceClass, $instance);
     // It's possible that deserializing an object requires the original proxy
     // object to be replaced.
     if ($instance !== $replacement) {
         $this->rememberDecodedObject($index, $instance);
         $instance = $replacement;
     }
     return $instance;
     //$instance = $customSerializer->instantiate($this);
     //$instance = $this->deserializeImpl($customSerializer, $serializedInstRef->getName());
     //$instance = $this->deserializeImpl($customSerializer, $serializedInstRef->getName(), $instance);
     //return $instance;
 }