code: @Override
      public <T> TypedQuery<T> createQuery(CriteriaQuery<T> arg0) {
          try
          {
              return ivEm.createQuery(arg0);
          } finally
          {
              if (!inJTATransaction())
              {
                  ivEm.clear();
              }
          }
      }
docs: New JPA 2.0 API methods    //F743-954, F743-954.1 d597764