public function addDependencies($resourceId, array $dependencies) {
        $this->_resourceGraph[$resourceId] = array_merge($this->_resourceGraph[$resourceId], $dependencies);
        return $this;
    }