Checks if the given attribute name is a resource attribute (i.e., either
    a member or a aggregate attribute) of the given registered resource.

def is_domain_class_domain_attribute(ent, attr_name):
    """
    Checks if the given attribute name is a resource attribute (i.e., either
    a member or a aggregate attribute) of the given registered resource.
    """
    attr = get_domain_class_attribute(ent, attr_name)
    return attr != RESOURCE_ATTRIBUTE_KINDS.TERMINAL