public function overrideParameters(array $parameters) {
    $this->setServiceProvider();

    // Cast service parameters.
    foreach ($parameters as $name => $value) {
      $parameters[$name] = $this->castParameter($value);
    }

    \Drupal::state()->set('nuvole_web.drupal_extension.parameter_overrides', $parameters);
    \Drupal::service('kernel')->rebuildContainer();
  }