public function addMappingsToRenderer(
        SwatCellRenderer $renderer,
        array $mappings = array()
    ) {
        $renderer_key = spl_object_hash($renderer);

        foreach ($mappings as $mapping) {
            if ($renderer->isPropertyStatic($mapping->property)) {
                throw new SwatException(
                    sprintf(
                        'The %s property can not be data-mapped',
                        $mapping->property
                    )
                );
            }

            $this->mappings[$renderer_key][] = $mapping;
        }
    }