code: func (r *ResourceDefinition) Parent() *ResourceDefinition {
  	if r.ParentName != "" {
  		if parent, ok := Design.Resources[r.ParentName]; ok {
  			return parent
  		}
  	}
  	return nil
  }
docs: // Parent returns the parent resource if any, nil otherwise.