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