/**
  * DeSerializes the specified action entity type.
  * @param message The type to be  serialize to
  * @param bLimitToOne Limit to parsing just one response element
  * @return object Returns the de serialized object.
  */
 public function Deserialize($message, $bLimitToOne = FALSE)
 {
     if (!$message) {
         return NULL;
     }
     $resultObject = NULL;
     $resultObjects = NULL;
     $responseXmlObj = simplexml_load_string($message);
     foreach ($responseXmlObj as $oneXmlObj) {
         $oneXmlElementName = (string) $oneXmlObj->getName();
         if ('Fault' == $oneXmlElementName) {
             return NULL;
         }
         $phpClassName = XmlObjectSerializer::decorateIntuitEntityToPhpClassName($oneXmlElementName);
         $onePhpObj = XmlObjectSerializer::PhpObjFromXml($phpClassName, $oneXmlObj->asXML());
         $resultObject = $onePhpObj;
         $resultObjects[] = $onePhpObj;
         // Caller may be anticipating ONLY one object in result
         if ($bLimitToOne) {
             break;
         }
     }
     if ($bLimitToOne) {
         return $resultObject;
     } else {
         return $resultObjects;
     }
     /*
                 object deserializedObject = null;
     
                 // Initialize serialize for object
                 XmlSerializer serializer = new XmlSerializer(typeof(T));
                 try
                 {
                     using (TextReader reader = new StringReader(message))
                     {
                         // de serialization of message.
                         deserializedObject = serializer.Deserialize(reader);
                     }
                 }
                 catch (SystemException ex)
                 {
                     SerializationException serializationException = new SerializationException(ex.Message, ex);
                     this.IDSLogger.Log(TraceLevel.Error, serializationException.ToString());
     
                     IdsExceptionManager.HandleException(serializationException);
                 }
     
                 return deserializedObject;
     */
 }