code: private void handleAlarm()
    {
      AlarmListener listener = getListener();
  
      if (listener == null) {
        return;
      }
  
      Thread thread = Thread.currentThread();
      ClassLoader loader = getContextLoader();
  
      if (loader != null) {
        thread.setContextClassLoader(loader);
      }
      else {
        thread.setContextClassLoader(_systemLoader);
      }
  
      try {
        listener.handleAlarm(this);
      } finally {
        thread.setContextClassLoader(_systemLoader);
      }
    }
docs: Handles the alarm.