docs: @Override
      public boolean onFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState,
                                  String[] propertyNames, Type[] types) {
          if (entity.getClass().isAssignableFrom(AccessControlEntry.class)) {
              return false;
          }
  
          AccessControlContext accessControlContext = AccessControlContextOverride.exists() ? AccessControlContextOverride.get()
                                                                                            : accessControlContextProvider.getCurrent();
  
          accessControlHelper.validateContextAllowsWrite(entity.getClass(), id, accessControlContext, false);
  
          return false;
      }