code: protected void onSourceErrorOccurred(TransformerSourceErrorEvent event) {
  
          for (TransformerSourceEventListener listener : transformerSourceEventListeners)
              fireErrorEvent(listener, event);
      }
  
      /**
       * Fires the given event on the given listener.
       * @param listener The listener to fire the event to.
       * @param event The event to fire.
       */
      private void fireErrorEvent(TransformerSourceEventListener listener, TransformerSourceErrorEvent event) {
  
          try {
              listener.ErrorOccurred(event);
          }
          catch (RuntimeException e) {
              // Log this somehow
              System.err.println("Exception thrown while trying to invoke event listener, removing bed behaved listener.");
              e.printStackTrace();
              removeTransformerSourceEventListener(listener);
          }
      }
  }
docs: (Re)-fires a preconstructed event.
  @param event The event to fire