//class Swaption {
        //        [System.Xml.Serialization.XmlElementAttribute("americanExercise", typeof(AmericanExercise))]
        //        [System.Xml.Serialization.XmlElementAttribute("bermudaExercise", typeof(BermudaExercise))]
        //        [System.Xml.Serialization.XmlElementAttribute("europeanExercise", typeof(EuropeanExercise))]
        //        public Exercise Item {

        /// <summary>
        ///
        /// </summary>
        /// <param name="swaption"></param>
        /// <param name="europeanExercise"></param>
        public static void SwaptionSetEuropeanExercise(Swaption swaption, EuropeanExercise europeanExercise)
        {
            swaption.Item = europeanExercise;
        }
 /// <summary>
 ///
 /// </summary>
 /// <param name="trade"></param>
 /// <param name="swaption"></param>
 public static void TradeSetSwaption(Trade trade, Swaption swaption)
 {
     trade.Item            = swaption;
     trade.ItemElementName = ItemChoiceType15.swaption;
 }