presto-resource-group-managers/src/main/java/io/prestosql/plugin/resourcegroups/ResourceGroupNameTemplate.java/NameFragment/toString
class NameFragment:        @Override
        public String toString()
        {
            if (variable != null) {
                return "${" + variable + "}";
            }

            return literal;
        }