@classmethod
def generic_event_factory(cls, event_name):
    """Creates a generic event based on its name. If a event class is not registered
        in the gateway, and TELEGRAPHY_SEND_UNREGISTERED is turned on, this method is
        called to build the class. Not it hass a class level cache."""
    if not event_name in cls._generic_event_registry:
        cls._generic_event_registry = type()
