protected function toConfigArray($source, $nodeName)
    {
        $items = [];
        $config = $source->getElementsByTagName($nodeName);
        
        foreach($config as $configNode) {
            $item = [];
            foreach($configNode->attributes as $attribute) {
                $item[$attribute->name] = $attribute->value;
            }
            $items []= $item;
        }

        return $items;
    }