code: public void finalSweep(StatefulPassivator passivator) {
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
              Tr.entry(tc, "finalSweep : Stateful Beans = " + ivStatefulBeanList.size());
  
          for (Enumeration<TimeoutElement> e = ivStatefulBeanList.elements(); e.hasMoreElements();) {
              TimeoutElement elt = e.nextElement();
  
              if (elt.passivated) {
                  try {
                      // If the bean hasn't already been removed (possibly by the
                      // regular sweep(), then go ahead and remove the file. d129562
                      if (remove(elt.beanId)) {
                          passivator.remove(elt.beanId, false); //LIDB2018-1
                      }
  
                  } catch (RemoteException ex) {
                      FFDCFilter.processException(ex, CLASS_NAME + ".finalSweep",
                                                  "298", this);
                      Tr.warning(tc, "REMOVE_FROM_PASSIVATION_STORE_FAILED_CNTR0016W", new Object[] { elt.beanId, ex }); //p111002.3
                  }
              }
          }
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
              Tr.exit(tc, "finalSweep : Stateful Beans = " + ivStatefulBeanList.size());
      }
docs: This method is invoked just before container termination to clean
  up stateful beans which have been passivated.