code: @Override
      void closeTxEntityManager(EntityManager em, boolean allowPooling)
      {
          if (em != null && em.isOpen())
          {
              if (allowPooling)
              {
                  if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                      Tr.debug(tc, "closeTxEntityManager is pooling JTA em: " + em);
  
                  ivEntityManagerPool.putEntityManager(em);
              }
              else
              {
                  if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                      Tr.debug(tc, "closeTxEntityManager is closing JTA em: " + em);
  
                  em.close();
              }
          }
      }
docs: d510184