presto-main/src/main/java/io/prestosql/execution/QueryStateMachine.java/QueryStateMachine/getQueryState
class QueryStateMachine:    public QueryState getQueryState()
    {
        return queryState.get();
    }