def mount(self, prefix, adapter):
self.adapters[prefix] = adapter<EOL>keys_to_move = [k for k in self.adapters if len(k) < len(prefix)]<EOL>for key in keys_to_move:<EOL><INDENT>self.adapters[key] = self.adapters.pop(key)<EOL><DEDENT>
Registers a connection adapter to a prefix.

        Adapters are sorted in descending order by key length.