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());
// update item data with new name and old values only
cache.put(makeItemFqn(newProp.getIdentifier()), ITEM_DATA, newProp);
}
else
{
// remove item to avoid inconsistency in cluster mode since we have not old values
cache.remove(makeItemFqn(data.getIdentifier()), ITEM_DATA);