code: @Override
      public void afterCompletion(int status)
      {
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
              Tr.entry(tc, "afterCompletion : " + status + " : " + this);
  
          // JPA 5.9.1 Container Responsibilities
          // - After the JTA transaction has completed (either by transaction commit or rollback),
          // The container closes the entity manager by calling EntityManager.close. [39]
          //
          // [39] The container may choose to pool EntityManagers and instead of creating and
          // closing in each case acquire one from its pool and call clear() on it.
  
          // Note : em may be null now, if it was non-transactional.     d472866.1
          if (ivEm != null)
          {
              ivJpaEm.closeTxEntityManager(ivEm, ivPoolEM); // d510184
          }
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
              Tr.exit(tc, "afterCompletion");
      }
docs: /*
  (non-Javadoc)
  
  @see javax.transaction.Synchronization#afterCompletion(int)