You need to validate that the required information has been injected ak: actions and path_ui
something like: assert isinstance(self.actions, dict), 'Invalid actions %s' % self.actions.
and decorate broker with @injected in order to properly work (please be consistent about this behavior).