code: 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);
      }
    }
docs: Sends a warning to the current service.