/// <summary> Extract a IDictionary from the given MapMessage.</summary> /// <param name="message">the message to convert /// </param> /// <returns> the resulting Map /// </returns> /// <throws>EMSException if thrown by EMS methods </throws> protected virtual IDictionary ExtractMapFromMessage(MapMessage message) { IDictionary dictionary = new Hashtable(); IEnumerator e = message.MapNames; while (e.MoveNext()) { String key = (String)e.Current; dictionary.Add(key, message.GetObject(key)); } return dictionary; }