public static void sendCurrentWarning(Object source,Throwable e){
  WarningSystem warning=getCurrent();
  if (warning != null)   warning.sendWarning(source,e);
 else {
    e.printStackTrace();
    log.log(Level.WARNING,e.toString(),e);
  }
}

public static void sendCurrentWarning ( Object source , Throwable e ) { WarningSystem warning = getCurrent ( ) ; if ( warning != null ) warning . sendWarning ( source , e ) ; else { e . printStackTrace ( ) ; log . log ( Level . WARNING , e . toString ( ) , e ) ; } }
sends a warning to the current service .
