public function toggleImporter($key)
    {
        $importer = $this->getImporter($key);
        $importer->toggle();
        foreach ($importer->getSegments() as $segment) {
            if ($importer->isEnabled()) {
                $this->addSegment($segment);
            } else {
                $this->removeSegment($segment);
            }
        }
    }