code: func GetEventDescriptor(event *Event) EventDescriptor {
  	bee := GetBee(event.Bee)
  	if bee == nil {
  		panic("Bee " + event.Bee + " not registered")
  	}
  	factory := (*GetFactory((*bee).Namespace()))
  	for _, ev := range factory.Events() {
  		if ev.Name == event.Name {
  			return ev
  		}
  	}
  
  	return EventDescriptor{}
  }
docs: // GetEventDescriptor returns the EventDescriptor matching an event.