PropertyData prop = (PropertyData)data;
if (prevData != null && !(prevData instanceof NullItemData))
{
PropertyData newProp =
new PersistedPropertyData(prop.getIdentifier(), prop.getQPath(), prop.getParentIdentifier(),
prop.getPersistedVersion(), prop.getType(), prop.isMultiValued(),
((PropertyData)prevData).getValues(), new SimplePersistedSize(
((PersistedPropertyData)prevData).getPersistedSize()));
// update item data with new name and old values only
cache.put(new CacheId(getOwnerId(), newProp.getIdentifier()), newProp, false);
}
else
{
// remove item to avoid inconsistency in cluster mode since we have not old values
cache.remove(new CacheId(getOwnerId(), data.getIdentifier()));