public void register(String type, NotificationDispatcher dispatcher) {
    if (null == dispatcher) {
      m_dispatchers.remove(type);
    } else {
      m_dispatchers.put(type, dispatcher);
    }
  }
Registers a dispatcher instance with a type.

@param type
         the type
@param dispatcher
         the dispatcher to register with the type.
ambari-server/src/main/java/org/apache/ambari/server/notifications/DispatchFactory.java