code: func (r *Registry) getEntityDatacenter(item mo.Entity) *Datacenter {
  	return r.getEntityParent(item, "Datacenter").(*Datacenter)
  }
docs: // getEntityDatacenter returns the Datacenter containing the given item