presto-main/src/main/java/io/prestosql/dispatcher/DispatchQueryFactory.java/DispatchQueryFactory/createDispatchQuery
class DispatchQueryFactory:    DispatchQuery createDispatchQuery(
            Session session,
            String query,
            PreparedQuery preparedQuery,
            Slug slug,
            ResourceGroupId resourceGroup);