func (r *Resource) HasLink(name string) bool {
	for n, _ := range r.Links {
		if n == name {
			return true
		}
	}
	return false
}
func (r *Resource) HasLink(name string) bool {
	for n, _ := range r.Links {
		if n == name {
			return true
		}
	}
	return false
}
// HasLink returns whether the resource has a link with the given name.