def _wrap_public_method(self, attr):
def wrapper(*args, **kwargs):<EOL><INDENT>return getattr(self.connection, attr)(*args, **kwargs)<EOL><DEDENT>return wrapper<EOL>
Ensure that plugin will call current connection method when accessing
as ``plugin.<public_method>(*args, **kwargs)``.