public ReferenceEntityInfo_para(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode referenceCurveListNode = xmlNode.SelectSingleNode("referenceCurveList");
     
     if (referenceCurveListNode != null)
     {
         if (referenceCurveListNode.Attributes["href"] != null || referenceCurveListNode.Attributes["id"] != null) 
         {
             if (referenceCurveListNode.Attributes["id"] != null) 
             {
                 referenceCurveListIDRef_ = referenceCurveListNode.Attributes["id"].Value;
                 ReferenceCurveList ob = new ReferenceCurveList(referenceCurveListNode);
                 IDManager.SetID(referenceCurveListIDRef_, ob);
             }
             else if (referenceCurveListNode.Attributes["href"] != null)
             {
                 referenceCurveListIDRef_ = referenceCurveListNode.Attributes["href"].Value;
             }
             else
             {
                 referenceCurveList_ = new ReferenceCurveList(referenceCurveListNode);
             }
         }
         else
         {
             referenceCurveList_ = new ReferenceCurveList(referenceCurveListNode);
         }
     }
     
 
     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_para(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode referenceCurveListNode = xmlNode.SelectSingleNode("referenceCurveList");

            if (referenceCurveListNode != null)
            {
                if (referenceCurveListNode.Attributes["href"] != null || referenceCurveListNode.Attributes["id"] != null)
                {
                    if (referenceCurveListNode.Attributes["id"] != null)
                    {
                        referenceCurveListIDRef_ = referenceCurveListNode.Attributes["id"].Value;
                        ReferenceCurveList ob = new ReferenceCurveList(referenceCurveListNode);
                        IDManager.SetID(referenceCurveListIDRef_, ob);
                    }
                    else if (referenceCurveListNode.Attributes["href"] != null)
                    {
                        referenceCurveListIDRef_ = referenceCurveListNode.Attributes["href"].Value;
                    }
                    else
                    {
                        referenceCurveList_ = new ReferenceCurveList(referenceCurveListNode);
                    }
                }
                else
                {
                    referenceCurveList_ = new ReferenceCurveList(referenceCurveListNode);
                }
            }


            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);
                }
            }
        }