updatedAttributes.put(ConfiguredObject.NAME, getName());
if (!updatedAttributes.containsKey(VirtualHost.MODEL_VERSION))
{
updatedAttributes.put(VirtualHost.MODEL_VERSION, getBroker().getModelVersion());
}
replacementRecord = new ConfiguredObjectRecordImpl(vhostRecord.getId(),
vhostRecord.getType(),
updatedAttributes,
vhostRecord.getParents());
}
else if (vhostRecord.getAttributes().get(VirtualHost.MODEL_VERSION) == null)
{
Map<String, Object> updatedAttributes = new LinkedHashMap<>(vhostRecord.getAttributes());
updatedAttributes.put(VirtualHost.MODEL_VERSION, getBroker().getModelVersion());
replacementRecord = new ConfiguredObjectRecordImpl(vhostRecord.getId(),
vhostRecord.getType(),
updatedAttributes,
vhostRecord.getParents());
}
else