# File lib/ruote/svc/dispatch_pool.rb, line 53
    def dispatch(msg)

      participant = @context.plist.lookup(
        msg['participant'] || msg['participant_name'], msg['workitem'])

      if
        @context['participant_threads_enabled'] == false ||
        do_not_thread?(participant, msg)
      then
        do_dispatch(participant, msg)
      else
        do_threaded_dispatch(participant, msg)
      end
    end