if (String.class == cls) {
return value;
} else if (cls.isPrimitive()) {
return PrimitiveUtils.read(value, cls);
} else if (cls.isEnum()) {
<BUG>if (m != null && !MessageUtils.getContextualBoolean(m, ENUM_CONVERSION_CASE_SENSITIVE, false)) {
</BUG>
obj = invokeValueOf(value.toUpperCase(), cls);
}
if (obj == null) {

if (String.class == cls) {
return value;
} else if (cls.isPrimitive()) {
return PrimitiveUtils.read(value, cls);
} else if (cls.isEnum()) {
if (m != null && MessageUtils.getContextualBoolean(m, ENUM_CONVERSION_CASE_SENSITIVE, true)) {
obj = invokeValueOf(value.toUpperCase(), cls);
}
if (obj == null) {
