code: public void send(Type type, final String message) {
  
          final CmsNotificationMessage notificationMessage = new CmsNotificationMessage(Mode.NORMAL, type, message);
          m_messages.add(notificationMessage);
          if (hasWidget()) {
              m_widget.addMessage(notificationMessage);
          }
          Timer timer = new Timer() {
  
              @Override
              public void run() {
  
                  removeMessage(notificationMessage);
              }
          };
          timer.schedule(4000 * (type == Type.NORMAL ? 1 : 2));
  
      }
docs: Sends a new notification, that will be removed automatically.<p>
  
  @param type the notification type
  @param message the message