public void deliverReceivedMessage(Message m) {
    Set<InputChannel> channels = inputChannelMap.get(m.getMessageType());

    for (InputChannel c : channels) c.onMessageRecieved(m);
  }
 /**
  * Call this, to push a {@link InputMessage} to all {@link InputChannel}s, that return ture on
  * calling {@link InputChannel#isMatchingFilter(String)}
  *
  * @param message The {@link InputMessage} which should pushed
  */
 private void fireInputChannelMessage(InputMessage message) {
   for (InputChannel i : inputChannels)
     if (i.isMatchingFilter(message.getText())) i.onMessageReceived(message);
 }