presto-main/src/main/java/io/prestosql/server/ResourceGroupStateInfoResource.java/ResourceGroupStateInfoResource/getQueryStateInfos
class ResourceGroupStateInfoResource:    @GET
    @Produces(MediaType.APPLICATION_JSON)
    @Encoded
    @Path("{resourceGroupId: .+}")
    public ResourceGroupInfo getQueryStateInfos(@PathParam("resourceGroupId") String resourceGroupIdString)
    {
        if (!isNullOrEmpty(resourceGroupIdString)) {
            return resourceGroupManager.tryGetResourceGroupInfo(
                    new ResourceGroupId(
                            Arrays.stream(resourceGroupIdString.split("/"))
                                    .map(ResourceGroupStateInfoResource::urlDecode)
                                    .collect(toImmutableList())))
                    .orElseThrow(() -> new WebApplicationException(NOT_FOUND));
        }
        throw new WebApplicationException(NOT_FOUND);
    }