<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def sendMessage(self, exchange, routing_key, message, properties=None, UUID=None):
 """ With this function, you can send message to `exchange`. Args: exchange (str):
 name of exchange you want to message to be delivered routing_key (str):
 which routing key to use in headers of message message (str):
 body of message properties (dict ,optional):
 properties of message - if not used, or set to ``None``, ``self.content_type`` and ``delivery_mode=2`` (persistent) is used UUID (str, optional):
 UUID of the message. If set, it is included into ``properties`` of the message. """

        if properties is None:
            properties = pika.BasicProperties(
                content_type=self.content_type,
                delivery_mode=1,
                headers={}
            )

        if UUID is not None:
            if properties.headers is None:
                properties.headers = {}
            properties.headers["UUID"] = UUID

        self.channel.basic_publish(
            exchange=exchange,
            routing_key=routing_key,
            properties=properties,
            body=message
        )