public function addDependencies($id, $className, $constructor, array $dependencies)
    {
        $result = true;

        foreach ($dependencies as $dependency) {
            $result = $result && $this->addDependency($id, $className, $constructor, $dependency);

            if (false === $result) {
                throw new Doozr_Di_Exception(
                    sprintf(
                        'Dependencies could not be added! The dependency with target: "%s" produced an error. '.
                        'No Dependencies added.',
                        $dependency->getTarget()
                    )
                );
            }
        }

        return $result;
    }