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