presto-spi/src/main/java/io/prestosql/spi/resourcegroups/ResourceGroupId.java/ResourceGroupId/getLastSegment
class ResourceGroupId:    public String getLastSegment()
    {
        return segments.get(segments.size() - 1);
    }