public function populateNodes($data)
    {
        if (!\Genesis\Utils\Common::isValidArray($data)) {
            throw new \Genesis\Exceptions\InvalidArgument('Invalid data structure');
        }

        // Ensure that the Array position is 0
        reset($data);

        $this->iterateArray(key($data), reset($data));

        // Finish the document
        $this->context->endDocument();
    }