code: @Override
      public final EntityTransaction getTransaction()
      {
          checkClosed();
          if (this.transactionType == PersistenceUnitTransactionType.JTA)
          {
              throw new IllegalStateException("A JTA EntityManager cannot use getTransaction()");
          }
  
          if (this.entityTransaction == null)
          {
              this.entityTransaction = new KunderaEntityTransaction(this);
          }
          return this.entityTransaction;
      }
docs: /*
  (non-Javadoc)
  
  @see javax.persistence.EntityManager#getTransaction()