/// <summary>
        /// Method for deserialization of a XML-String to the coressponding Domainmodel.
        /// </summary>
        ///
        /// <param name="str"> String containing the XML-Domainmodel for deserialization. </param>
        ///
        /// <returns>
        /// DomainModel-type coressponding to the parameter "str" after deserialization.
        /// </returns>
        internal DomainModel getDMFromXmlString(String str)
        {
            XmlSerializer serializer = new XmlSerializer(typeof(DomainModel));

            using (TextReader reader = new StringReader(str))
            {
                DomainModel result = (DomainModel)serializer.Deserialize(reader);
                return(result);
            }
        }
        /// <summary>
        /// Method returning domain model either from the run-tima asset storage if available or from specified (default) source(File/Web).
        /// </summary>
        ///
        /// <returns> The domein model. </returns>
        private DomainModel getDomainModel()
        {
            if (domainModel != null)
            {
                return(domainModel);
            }
            DomainModel dm = loadDefaultDomainModel();

            domainModel = dm;
            return(dm);
        }
 /// <summary>
 /// Method for storing a domain model.
 /// </summary>
 /// <param name="dm"> Domain model to store. </param>
 internal void storeDomainModel(DomainModel dm)
 {
     domainModel = dm;
 }
 /// <summary>
 /// Method for setting the domain model
 /// </summary>
 /// <param name="dm"> The new doamin model</param>
 internal void setDomainModel(DomainModel dm)
 {
     domainModel = dm;
 }