def METHOD_NAME(cls, routingKey):
    def ifNone(v, default):
        return default if v is None else v
    # replace None values by "" in routing key
    routingKey = [ifNone(key, "") for key in routingKey]
    # then join them with "dot", and add the prefix
    return cls.NAMESPACE + "." + ".".join(routingKey)