Class<?> valueType = value.getClass();
Object normalizedValue = value;
if (!existingValueType.isAssignableFrom(valueType) && !valueType.isAssignableFrom(existingValueType)) {
IConverter converter = XWT.findConvertor(valueType, existingValueType);
if (converter != null) {
normalizedValue = converter.convert(normalizedValue);
}
else if (value.toString().trim().length() > 0){
boolean found = false;
// in case where the value is a boolean
converter = XWT.findConvertor(valueType, Boolean.class);