def generate_payload(self, config=None, context=None):
        """
        Generate payload by iterating over registered plugins. Merges .
        :param context: current context.
        :param config: honeybadger configuration.
        :return: a dict with the generated payload.
        """
        for name, plugin in iteritems(self._registered):
            if plugin.supports(config, context):
                logger.debug('Returning payload from plugin %s' % name)
                return plugin.generate_payload(config, context)

        logger.debug('No active plugin to generate payload')
        return {
            'context': context
        }
Generate payload by iterating over registered plugins. Merges .
        :param context: current context.
        :param config: honeybadger configuration.
        :return: a dict with the generated payload.