code: def msg2processor(msg, **config):
      
      for processor in processors:
          if processor.handle_msg(msg, **config) is not None:
              return processor
      else:
          return processors[-1]
docs: For a given message return the text processor that can handle it.
  
      This will raise a :class:`fedmsg.meta.ProcessorsNotInitialized` exception
      if :func:`fedmsg.meta.make_processors` hasn't been called yet.