Object value;
if (Money.class.equals(clazz)){
try {
//this should be handled with an ObjectConverter in the
//editor specific context
value=new Money(component.getText());
} catch (NumberFormatException e) {
value=null; //to force an error popup
}
}else value=FieldConverter.fromString(component.getText(),clazz);
return value;