code: public function addConfiguration($configuration, $configure = true)
      {
          if (!$configuration instanceof ConfigurationInterface) {
              $configuration = new Configuration($configuration);
          }
  
          $config = $this->getConfiguration();
  
          if ($config instanceof ConfigurationInterface) {
              $config->merge($configuration);
          } 
  
          if ($config === null) {
              $config = $configuration;
          }
  
          $this->setConfiguration($config, $configure);
      }
docs: This method will add the provided configuration to the object configuration.
  
  @param mixed $configuration
  @param boolean $configure
  
  @return void