protected function templateSlotsToArray($slots)
    {
        $result = array();
        foreach ($slots as $slot) {
            $result[$slot->getSlotName()] = $slot->getRepeated();
        }

        return $result;
    }