Builds execution chain including all intercepters and the specified command.

        :param command: the command to build a chain.

def _build_command_chain(self, command):
        """
        Builds execution chain including all intercepters and the specified command.

        :param command: the command to build a chain.
        """
        next = command
        for intercepter in reversed(self._intercepters):
            next = InterceptedCommand(intercepter, next)
        self._commands_by_name[next.get_name()] = next