private function parsePipelines(\DOMXPath $xpath, \DOMNode $rootNode)
    {
        $pipelines = [];

        foreach ($xpath->query(self::PIPELINES_PATH, $rootNode) as $pipelineNode) {
            $pipeline = [];
            foreach ($pipelineNode->attributes as $attribute) {
                $pipeline[$attribute->name] = $attribute->value;
            }
            $pipeline['bucketsPath'] = $this->parsePipelineBucketsPath($xpath, $pipelineNode);
            $pipelines[$pipeline['name']] = $pipeline;
        }

        return $pipelines;
    }