Messages messages = resources.getMessages();
ClassPropertyAdapter adapter = _propertyAccess.getAdapter(beanClass);
BeanEditorModel model = new BeanEditorModelImpl(beanClass, adapter, _typeCoercer, messages);
for (String propertyName : adapter.getPropertyNames())
{
PropertyAdapter pa = adapter.getPropertyAdapter(propertyName);
if (pa.isRead() && pa.isUpdate())
{
String editorType = _registry.get(pa.getType());
// If an unregistered type, then ignore the property.
if (editorType.equals(""))
continue;
model.add(propertyName).editorType(editorType);
}
}
return model;
}