def handle_stream_features(self, stream, features):
logger.debug(u"<STR_LIT>".format(<EOL>element_to_unicode(features)))<EOL>element = features.find(FEATURE_BIND)<EOL>if element is None:<EOL><INDENT>logger.debug("<STR_LIT>")<EOL>return None<EOL><DEDENT>resource = stream.settings["<STR_LIT>"]<EOL>self.bind(stream, resource)<EOL>return StreamFeatureHandled("<STR_LIT>", mandatory = True)<EOL>
Process incoming <stream:features/> element.

        [initiating entity only]

        The received features element is available in `features`.