public ReferenceEntityInfo(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode curveListNode = xmlNode.SelectSingleNode("curveList");
     
     if (curveListNode != null)
     {
         if (curveListNode.Attributes["href"] != null || curveListNode.Attributes["id"] != null) 
         {
             if (curveListNode.Attributes["id"] != null) 
             {
                 curveListIDRef_ = curveListNode.Attributes["id"].Value;
                 CurveList ob = new CurveList(curveListNode);
                 IDManager.SetID(curveListIDRef_, ob);
             }
             else if (curveListNode.Attributes["href"] != null)
             {
                 curveListIDRef_ = curveListNode.Attributes["href"].Value;
             }
             else
             {
                 curveList_ = new CurveList(curveListNode);
             }
         }
         else
         {
             curveList_ = new CurveList(curveListNode);
         }
     }
     
 
     XmlNode jointProbabilityTraitNode = xmlNode.SelectSingleNode("jointProbabilityTrait");
     
     if (jointProbabilityTraitNode != null)
     {
         if (jointProbabilityTraitNode.Attributes["href"] != null || jointProbabilityTraitNode.Attributes["id"] != null) 
         {
             if (jointProbabilityTraitNode.Attributes["id"] != null) 
             {
                 jointProbabilityTraitIDRef_ = jointProbabilityTraitNode.Attributes["id"].Value;
                 JointProbabilityTrait ob = new JointProbabilityTrait(jointProbabilityTraitNode);
                 IDManager.SetID(jointProbabilityTraitIDRef_, ob);
             }
             else if (jointProbabilityTraitNode.Attributes["href"] != null)
             {
                 jointProbabilityTraitIDRef_ = jointProbabilityTraitNode.Attributes["href"].Value;
             }
             else
             {
                 jointProbabilityTrait_ = new JointProbabilityTrait(jointProbabilityTraitNode);
             }
         }
         else
         {
             jointProbabilityTrait_ = new JointProbabilityTrait(jointProbabilityTraitNode);
         }
     }
     
 
 }
        public ReferenceEntityInfo(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode curveListNode = xmlNode.SelectSingleNode("curveList");

            if (curveListNode != null)
            {
                if (curveListNode.Attributes["href"] != null || curveListNode.Attributes["id"] != null)
                {
                    if (curveListNode.Attributes["id"] != null)
                    {
                        curveListIDRef_ = curveListNode.Attributes["id"].Value;
                        CurveList ob = new CurveList(curveListNode);
                        IDManager.SetID(curveListIDRef_, ob);
                    }
                    else if (curveListNode.Attributes["href"] != null)
                    {
                        curveListIDRef_ = curveListNode.Attributes["href"].Value;
                    }
                    else
                    {
                        curveList_ = new CurveList(curveListNode);
                    }
                }
                else
                {
                    curveList_ = new CurveList(curveListNode);
                }
            }


            XmlNode jointProbabilityTraitNode = xmlNode.SelectSingleNode("jointProbabilityTrait");

            if (jointProbabilityTraitNode != null)
            {
                if (jointProbabilityTraitNode.Attributes["href"] != null || jointProbabilityTraitNode.Attributes["id"] != null)
                {
                    if (jointProbabilityTraitNode.Attributes["id"] != null)
                    {
                        jointProbabilityTraitIDRef_ = jointProbabilityTraitNode.Attributes["id"].Value;
                        JointProbabilityTrait ob = new JointProbabilityTrait(jointProbabilityTraitNode);
                        IDManager.SetID(jointProbabilityTraitIDRef_, ob);
                    }
                    else if (jointProbabilityTraitNode.Attributes["href"] != null)
                    {
                        jointProbabilityTraitIDRef_ = jointProbabilityTraitNode.Attributes["href"].Value;
                    }
                    else
                    {
                        jointProbabilityTrait_ = new JointProbabilityTrait(jointProbabilityTraitNode);
                    }
                }
                else
                {
                    jointProbabilityTrait_ = new JointProbabilityTrait(jointProbabilityTraitNode);
                }
            }
        }