code: public static void registerExceptionHandler(RegisterableExceptionHandler exceptionHandlerDelegate) {
          AwtExceptionHandlerAdapterHack.exceptionHandlerDelegate = exceptionHandlerDelegate;
          // Registers this class with the system properties so Sun's JDK can pick it up.  Always sets even if previously set.
          System.getProperties().put(SUN_AWT_EXCEPTION_HANDLER_KEY, AwtExceptionHandlerAdapterHack.class.getName());
      }
docs: Sets the {@link #SUN_AWT_EXCEPTION_HANDLER_KEY} system property to register this class as the event thread's
  exception handler.  When called back, this class simply forwards to the delegate.
  @param exceptionHandlerDelegate the "real" exception handler to delegate to when an uncaught exception occurs.