code: public void beforeCompletion()
      {
          final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
          if (isTraceOn && tc.isEntryEnabled())
              Tr.entry(tc, "beforeCompletion");
          becomePreparing(); // Change the state to PREPARRING
          if (isTraceOn && tc.isEntryEnabled())
              Tr.exit(tc, "beforeCompletion");
      }
docs: This method is called before the activity session this
  <code>ContainerAS</code> is associated with is completed
  (reset or completed). <p>