class BillingUtils {

	public static Map<String, String> stringsToMap(String ... keyValues) {
		Map<String, String> map = new HashMap<>();
		if (keyValues == null) {
			return map;
		}
		if (keyValues.length % 2 != 0) {
			throw new IllegalArgumentException("Missing key or value in arguments");
		}
		
		for (int i = 1; i < keyValues.length; i+=2) {
			map.put(keyValues[i - 1], keyValues[i]);
		}
		return map;
	}

	private  BillingUtils();

}