presto-main/src/main/java/io/prestosql/execution/resourcegroups/InternalResourceGroupManager.java/InternalResourceGroupManager/selectGroup
class InternalResourceGroupManager:    @Override
    public SelectionContext<C> selectGroup(SelectionCriteria criteria)
    {
        return configurationManager.get().match(criteria)
                .orElseThrow(() -> new PrestoException(QUERY_REJECTED, "Query did not match any selection rule"));
    }