def get_app(self):
<EOL>ctx = connection_stack.top<EOL>if ctx is not None:<EOL><INDENT>return ctx.app<EOL><DEDENT>if self.app is not None:<EOL><INDENT>return self.app<EOL><DEDENT>raise RuntimeError(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>')<EOL>
Get current app from Flast stack to use.

        This will allow to ensure which Redis connection to be used when
        accessing Redis connection public methods via plugin.