/********************************************************
*********************************************************/
static private Map addChangesToPropertiesMap(ValidationContext propValCtx, Map map) {
if(propValCtx.isADD() || propValCtx.isSET())
{
ElementProperty prop = (ElementProperty)propValCtx.getTargetBean();
map.put(prop.getName(), prop.getValue());
}
else if(propValCtx.isUPDATE())
{
ElementProperty prop = (ElementProperty)propValCtx.getTargetBean();
if(PROP_NAME_ATTRNAME.equals(propValCtx.name))
{
// when name of property is changing
map.remove(prop.getName());
map.put(propValCtx.value, prop.getValue());
}
else
{
// when value of property is changing
map.put(prop.getName(), propValCtx.value);
}
}
return map;
}