code: @Override
      void closeNoTxEntityManager(JPANoTxEmInvocation noTxInvocation)
      {
          EntityManager em = noTxInvocation.ivEm;
          if (em != null && em.isOpen())
          {
              // Pooling of this entity manager will only be allowed if the getDelegate()
              // method has not been invoked on the entity manager.  If it has then we will
              // need to close it instead.
              if (noTxInvocation.ivAllowPooling) {
                  if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                      Tr.debug(tc, "closeNoTxEntityManager is pooling noTx em: " + em);
  
                  ivEntityManagerPool.putEntityManager(em);
              } else {
                  if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                      Tr.debug(tc, "closeNoTxEntityManager is closing noTx em: " + em);
  
                  em.close();
              }
          }
      }
docs: /*
  (non-Javadoc)
  
  @see com.ibm.ws.jpa.management.JPAEntityManager#poolNoTxEntityManager()