public void autorecEntryAdd(Message message)
 {
     string id = message.getString("id");
     lock (_data)
     {
         if (_data.ContainsKey(id))
         {
             _logger.Info("[TVHclient] AutorecDataHelper.autorecEntryAdd id already in database - skip!" + message.ToString());
             return;
         }
         _data.Add(id, message);
     }
 }
 public void autorecEntryUpdate(Message message)
 {
     string id = message.getString("id");
     lock (_data)
     {
         Message oldMessage = _data[id];
         if (oldMessage == null)
         {
             _logger.Info("[TVHclient] AutorecDataHelper.autorecEntryAdd id not in database - skip!" + message.ToString());
             return;
         }
         foreach (KeyValuePair<string, object> entry in message)
         {
             if (oldMessage.containsField(entry.Key))
             {
                 oldMessage.removeField(entry.Key);
             }
             oldMessage.putField(entry.Key, entry.Value);
         }
     }
 }