presto-main/src/main/java/io/prestosql/server/QueryStateInfoResource.java/QueryStateInfoResource/getQueryStateInfo
class QueryStateInfoResource:    @GET
    @Path("{queryId}")
    @Produces(MediaType.APPLICATION_JSON)
    public QueryStateInfo getQueryStateInfo(@PathParam("queryId") String queryId)
            throws WebApplicationException
    {
        try {
            return getQueryStateInfo(dispatchManager.getQueryInfo(new QueryId(queryId)));
        }
        catch (NoSuchElementException e) {
            throw new WebApplicationException(NOT_FOUND);
        }
    }