def METHOD_NAME(self):
    if self._sender == APPRENTICE:
        return self._format_action(WIZARD)
    if self._sender == SEARCH_AGENT:
        return self._format_action(WIZARD)
    # Must be WIZARD
    k = 'is_search_query'
    if k in self._message and self._message[k]:
        return self._format_action(SEARCH_AGENT)
    else:
        return self._format_action(APPRENTICE)