private static <T> MethodHandle getDefaultConstructor(Class<T> clazz) {
        try {
            MethodHandles.Lookup lookup = AzureReflectionUtils.getLookupToUse(clazz);
            return lookup.findConstructor(clazz, methodType(void.class));
        } catch (NoSuchMethodException | IllegalAccessException e) {
            LOGGER.info("Can't find or access default constructor for {}", clazz.getName(), e);
        } catch (Exception e) {
            LOGGER.info("Failed to get lookup for {}", clazz.getName(), e);
        }

        return null;
    }
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