Wrapper method that can be changed in the inheriting classes.

def exec_cmd(self, command, **kwargs):
        """Wrapper method that can be changed in the inheriting classes."""
        self._is_allowed_command(command)
        self._check_command_parameters(**kwargs)
        return self._exec_cmd(command, **kwargs)