public function addConfig(ConfigInterface $config)
 {
     if (isset($this->configs[$config->getId()])) {
         throw new \InvalidArgumentException(sprintf('Datatable "%s" is already defined', $config->getId()));
     }
     $this->configs[$config->getId()] = $config;
 }