@SuppressWarnings("unchecked")
    T nameAndAddValue(String name, T value, Class<T> clazz) {
        this.name = name;
        this.clazz = clazz;

        ((ConcurrentHashMap<String, T>) VALUES.get(clazz)).put(name, value);
        return (T) this;
    }
Creates an instance of the specific expandable string enum from a String.

@param name The value to create the instance from.
@param clazz The class of the expandable string enum.
@param <T> the class of the expandable string enum.
@return The expandable string enum instance.

@throws RuntimeException wrapping implementation class constructor exception (if any is thrown).
chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/ai/fastchat/model/FastChatExpandableStringEnum.java