List<CustomProperty> cust = (entry instanceof MapEntry)
? ((MapEntry) entry).getCustomProperties()
: ((FeatureEntry) entry).getCustomProperties();
cust.clear();
for (String key : props.keySet()) {
cust.add(new CustomProperty(key, null, null, props.get(key)));
}
}