public static function gaufretteFactory(array $adapter) {
		$class = $adapter['adapterClass'];
		$Reflection = new ReflectionClass($class);

		if (!is_array($adapter['adapterOptions'])) {
			throw new InvalidArgumentException(sprintf('%s: The adapter options must be an array!', $configName));
		}

		$adapterObject = $Reflection->newInstanceArgs($adapter['adapterOptions']);

		return new $adapter['class']($adapterObject);
	}