public boolean notify(final String type,String message){
  try {
    Notification n=new Notification(type,this,sequence.incrementAndGet(),System.currentTimeMillis(),"[" + type + "] "+ message);
    sendNotification(n);
    for (    NotificationListener listener : listeners) {
      listener.handleNotification(n,this);
    }
    return true;
  }
 catch (  Exception x) {
    if (log.isDebugEnabled()) {
      log.debug("Notify failed. Type=" + type + "; Message="+ message,x);
    }
    return false;
  }
}

public boolean notify ( final String type , String message ) { try { Notification n = new Notification ( type , this , sequence . incrementAndGet ( ) , System . currentTimeMillis ( ) , "[" + type + "] " + message ) ; sendNotification ( n ) ; for ( NotificationListener listener : listeners ) { listener . handleNotification ( n , this ) ; } return true ; } catch ( Exception x ) { if ( log . isDebugEnabled ( ) ) { log . debug ( "Notify failed. Type=" + type + "; Message=" + message , x ) ; } return false ; } }
return true if the notification was sent successfully , false otherwise .
