public function applyActions(array $actions, $source, $target)
    {
        $applied = 0;
        foreach ($actions as $action_id => $data) {

            $handler = $this->getActionHandler($action_id);

            if (empty($handler)) {
                continue;
            }

            $result = $this->applyAction($source, $target, $handler, $data);

            if ($result === true) {
                $applied++;
            }
        }

        return $applied;
    }