code: public void clearFlushStack()
      {
          if (stackQueue != null && !stackQueue.isEmpty())
          {
              stackQueue.clear();
          }
          if (joinTableDataCollection != null && !joinTableDataCollection.isEmpty())
          {
              joinTableDataCollection.clear();
          }
  
          if (eventLogQueue != null)
          {
              eventLogQueue.clear();
          }
      }
docs: Empties Flush stack present in a PersistenceCache.