if (extendedAttributes != null) {
Comparator<LdapStructureAttribute> tieBreaker = AttributeComparators.useOrder();
for (LdapStructureAttribute a : extendedAttributes) {
boolean add = true;
if (effective.containsKey(a.getName())) {
LdapStructureAttribute existing = effective.get(a.getName());
int cmp = tieBreaker.compare(a, existing);
// The extended attribute was defined with a stronger USE than the
// version of the attribute contributed by a normal class if
// cmp == -1. If so we want to replace the existing attribute.
add = (cmp == -1);