'Process the received stream features.
:param features: The features stanza.'

def _handle_stream_features(self, features):

    for (order, name) in self._stream_feature_order:
        if (name in features[u'features']):
            (handler, restart) = self._stream_feature_handlers[name]
            if (handler(features) and restart):
                return True
    log.debug(u'Finished    processing    stream    features.')
    self.event(u'stream_negotiated')
