return enumValue.name().equalsIgnoreCase(enumString);
}
});
if (match == null) {
throw new TypeConversionException(
<BUG>String.format("Cannot coerce string value '%s' to an enum value of type '%s' (valid case insensitive values: %s)",
</BUG>
enumString, type.getName(), CollectionUtils.toStringList(Arrays.asList(type.getEnumConstants()))
)
);

return enumValue.name().equalsIgnoreCase(enumString);
}
});
if (match == null) {
throw new TypeConversionException(
String.format("Cannot convert string value '%s' to an enum value of type '%s' (valid case insensitive values: %s)",
enumString, type.getName(), CollectionUtils.toStringList(Arrays.asList(type.getEnumConstants()))
)
);
