def METHOD_NAME(self, application_id, msg):
    """
    Handles a message bound for an application.
    Args:
        application_id: the application id the message is addressed to
        msg: the actual message
    Returns:
        None
    """
    # TOOD(oramadan) move this distpatch loging out of server
    if application_id == base.BaseApplication.APP_ID:
        self._base_manager.handle_msg(self.state_id, msg)
    elif application_id == s6a.S6AApplication.APP_ID:
        self._s6a_manager.handle_msg(self.state_id, msg)
    else:
        logging.error(
            "Unknown application: %d",
            msg.header.application_id,
        )