'Route a stanza.
@param stanza: The stanza to be routed.
@type stanza: L{domish.Element}.'

def route(self, stanza):

    destination = JID(stanza['to'])
    log.msg(('Routing    to    %s:    %r' % (destination.full(), stanza.toXml())))
    if (destination.host in self.routes):
        self.routes[destination.host].send(stanza)
    else:
        self.routes[None].send(stanza)
