All this said, this should use an AttributeDefinition and call AD.addResourceAttributeDescription(...)