public boolean add(Attribute attribute) { Attribute newValue = AttributeSetUtilities.verifyAttributeValue(attribute, attributeInterfaceName); Object oldValue = attributesMap.put(attribute.getCategory(), newValue); return !attribute.equals(oldValue); }