code: @Override
      public Query createQuery(String qlString)
      {
          try
          {
              return ivEm.createQuery(qlString);
          } finally
          {
              if (!inJTATransaction())
              {
                  ivEm.clear();
              }
          }
      }
docs: /*
  (non-Javadoc)
  
  @see javax.persistence.EntityManager#createQuery(java.lang.String)