do not return null for getTransaction() if transaction was commited or rolled back.