Implemented get_message_type_for_app() and override_message_type_for_app().