presto-main/src/main/java/io/prestosql/dispatcher/DispatchManager.java/DispatchManager/isQueryRegistered
class DispatchManager:    public boolean isQueryRegistered(QueryId queryId)
    {
        return queryTracker.tryGetQuery(queryId).isPresent();
    }