/**
  * Create a new configuration from an assoc array
  * @param array $array
  * @return Configuration
  * @since 1.0
  */
 public static function createFromArray(array $array)
 {
     $configuration = new Configuration();
     foreach ($array as $name => $value) {
         $configuration->add(new ConfigurationAttribute($name, $value));
     }
     return $configuration;
 }