package com.bluesky.visualprogramming.remote;

import java.util.HashMap;
import java.util.Map;

public class ConnectionOptionUtils {


	public static Map<String, String> parse(String options) {
		Map<String, String> map = new HashMap<String, String>();

		String[] kvs = options.split(";");
		for (String kv : kvs) {
			if (kv.trim().isEmpty())
				continue;

			String[] ss = kv.split("=");

			if (ss.length < 2)
				throw new RuntimeException("failed to parse key value pair:"
						+ kv);

			map.put(ss[0], ss[1]);
		}

		return map;
	}
}

@@ -280,16 +280,24 @@
 split(%22;
+%7C%5C%5Cr?%5C%5Cn
 %22);%0A%09%09fo

enhance connection option utils