docs: public <T> Attribute<T> attribute(AttributeDefinition<T> def) {
        Attribute<T> attribute = attribute(def.name());
        if (attribute != null)
           return attribute;
        else
           throw log.noSuchAttribute(def.name(), name);
     }