 
 
   createChatPaneView: (channel) ->
+    return throwError 'RealTimeManager is not set'  unless @rtm
 
     options = { @rtm, @isInSession }
     @getView().addSubView @chat = new IDE.ChatView options, channel

        break

  removeParticipantFromMaps: (nickname) ->
    return throw new Error "rtm is not set"   unless @rtm

    myWatchMapName     = "#{nickname}WatchMap"
    mySnapshotName     = "#{nickname}Snapshot"



  removeParticipantFromParticipantList: (nickname) ->
    return throwError "participants is not set"  unless @participants

    # find the index for participant
    for participant, index in @participants.asArray()
