public static Map<String, String> str2map(String str) {
		Map<String, String> map = new HashMap<String, String>();
		if (StringUtils.isBlank(str))
			return map;
		String[] vks = str.split(" +");
		for (String kv : vks) {
			String[] args = kv.split("=", 2);
			if (args.length == 2) {
				map.put(args[0], args[1]);
			} else if (args.length == 1) {
				map.put(args[0], null);
			}
		}
		return map;
	}