 
     return m
 
-  mapActivities: mapActivities
   mapActivities = (messages)->
     # if no result, no need to do something
     return messages unless messages

    revivedMessages = (mapActivity message for message in messages)
    return revivedMessages

  getCurrentGroup = (callback)->
    groupsController = KD.getSingleton "groupsController"
    groupsController.ready ->

    # bind all events
    registerAndOpenChannels revivedChannels
    return revivedChannels
  mapChannels: mapChannels


  forwardMessageEvents = (source, target,  events)->
    events.forEach (event) ->
