Use Guava Preconditions for transaction state checks.