<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def send_message(self, message, sign=True):
 		"""Sends the given message to the connection. 		@type message: OmapiMessage 		@type sign: bool 		@param sign: whether the message needs to be signed 		@raises OmapiError: 		@raises socket.error: 		"""

		self.check_connected()
		self.protocol.send_message(message, sign)