'Look for a manager function for a brok, and call it'

def manage_brok(self, brok):

    manage = getattr(self, (('manage_' + brok.type) + '_brok'), None)
    if (manage and self.want_brok(brok)):
        if (brok.type not in ('service_next_schedule', 'host_next_schedule', 'service_check_result', 'host_check_result', 'update_service_status', 'update_host_status', 'update_poller_status', 'update_broker_status', 'update_receiver_status', 'update_scheduler_status')):
            logger.debug(('REGEN:    manage    brok    %s:%s' % (brok.type, brok.id)))
        return manage(brok)
