code: private void executeGlobalListeners(CallbackType callbackType, Object entity) {
      if (globalCallbacks == null) {
        return;
      }
      List<CallbackMetadata> callbacks = globalCallbacks.get(callbackType);
      if (callbacks == null) {
        return;
      }
      for (CallbackMetadata callback : callbacks) {
        Object listener = ListenerFactory.getInstance().getListener(callback.getListenerClass());
        invokeCallbackMethod(callback.getCallbackMethod(), listener, entity);
      }
    }
docs: Executes the global listeners for the given event type for the given entity.
  
  @param callbackType
  the event type
  @param entity
  the entity