class HiveModuleFactory implements ModuleFactory {

	@Override
	public Module createModule(Map<String, String> properties) {
		final DescriptorProperties descProperties = getValidatedProperties(properties);

		final String hiveVersion = descProperties.getOptionalString(MODULE_HIVE_VERSION)
			.orElse(HiveShimLoader.getHiveVersion());

		return new HiveModule(hiveVersion);
	}

}