if (Collection.class.isAssignableFrom(attrType)) {
return new CollectionEditor(getElementType(type, attrName));
}
if (Map.class.isAssignableFrom(attrType)) {
return new MapEditor(
getMapKeyType(type, attrName),
getMapValueType(type, attrName));
}
return PropertyEditorFactory.getInstance(attrType);