         lines = state.split '\n'
         lines.splice 0, 1
         responseText = lines.join ''
+        # todo: different in IE
         parser = new DOMParser()
         doc = parser.parseFromString responseText, 'text/xml'
 

            'Accept': 'application/xml; charset=utf8'
        @_getState @serviceUrl, headers, (result, state) =>
            callback? result, state, @additionalData
            @emit 'appstate', result, state, @additionalData

    _getState: (url, headers, callback) ->
        @_request 'GET', url, headers, null, (statusCode, responseText) =>

        if @messageBusList[namespace]
            messageBus = @messageBusList[namespace]
        else
            messageBus = new SenderMessageBus @messageChannel, namespace
            @messageBusList[namespace] = messageBus
        return messageBus

    _createPeer: ->
        peer = new Peer
            host: @host
            port: '9433'
