write(source, target, entity);
}
@SuppressWarnings("rawtypes")
protected void write(Object source, final Map target, SolrPersistentEntity<?> entity) {
final BeanWrapper wrapper = BeanWrapper.create(source, getConversionService());
entity.doWithProperties(new PropertyHandler<SolrPersistentProperty>() {
@SuppressWarnings({ "unchecked" })
@Override
public void doWithPersistentProperty(SolrPersistentProperty persistentProperty) {
Object value = wrapper.getProperty(persistentProperty, persistentProperty.getType());
if (value == null || persistentProperty.isReadonly()) {
return;
}
if (persistentProperty.containsWildcard() && !persistentProperty.isMap()) {