presto-main/src/main/java/io/prestosql/transaction/InMemoryTransactionManager.java/InMemoryTransactionManager/checkAndSetActive
class InMemoryTransactionManager:    @Override
    public void checkAndSetActive(TransactionId transactionId)
    {
        TransactionMetadata metadata = getTransactionMetadata(transactionId);
        metadata.checkOpenTransaction();
        metadata.setActive();
    }