'Called when a component has successfully authenticated.
Add the component to the routing table and establish a handler
for a closed connection.'

def onAuthenticated(self, xs):

    destination = xs.thisEntity.host
    self.router.addRoute(destination, xs)
    xs.addObserver(xmlstream.STREAM_END_EVENT, self.onConnectionLost, 0, destination, xs)
