 
     log "i am a CollaborativeTabbedEditorPane"
 
-    @panel         = @getDelegate()
-    @workspace     = @panel.getDelegate()
-    @sessionKey    = @getOptions().sessionKey or @createSessionKey()
-    @workspaceRef  = @workspace.firepadRef.child @sessionKey
+    @panel            = @getDelegate()
+    @workspace        = @panel.getDelegate()
+    @sessionKey       = @getOptions().sessionKey or @createSessionKey()
+    @workspaceRef     = @workspace.firepadRef.child @sessionKey
+    @isJoinedASession = @getOptions().sessionKey
+
+    log "joined an old session again, creating new tabbed editor"
 
     @createEditorTabs()
-    @createEditorInstance()
+    return @createEditorInstance()  unless @isJoinedASession
+    @recoverOldSessionTabs()
 
   createEditorTabs: ->
     @tabHandleContainer = new ApplicationTabHandleHolder

        path       : file.path
        sessionKey : editor.sessionKey

  openFile: CollaborativeTabbedEditorPane::createEditorInstance

  pistachio: ->

      delegate           : @
      tabHandleContainer : @tabHandleContainer

  createEditorInstance: (file, content, sessionKey) ->
    pane   = new KDTabPaneView
      name : file?.name or "Untitled.txt"

    editor = new CollaborativeEditorPane {
      delegate : @getDelegate()
      sessionKey
      file
      content
    }
