Handle a message
        :return: True if success, False otherwise

def handle(self):
        """
        Handle a message
        :return: True if success, False otherwise
        """

        if self.component_type == StreamComponent.SOURCE:
            msg = self.handler_function()
            return self.__send(msg)

        logger = self.logger
        data = self.__receive()
        if data is None:
            return False
        else:
            logger.debug("Calling %s " % self.handler_function)
            result = self.handler_function(data.decode(self.char_encoding))
            if self.component_type == StreamComponent.PROCESSOR:
                logger.debug("Sending p3:%s %s %s" % (PYTHON3, result, str(type(result))))
                if not self.__send(result):
                    return False
        return True