public static Map<String, String> convertToMap(Properties prop) {
		if (prop == null) {
			return null;
		}

		Map<String, String> result = new HashMap<String, String>();
		for (Object eachKey : prop.keySet()) {
			if (eachKey == null) {
				continue;
			}

			String key = eachKey.toString();
			String value = (String) prop.get(key);
			if (value == null) {
				value = "";
			} else {
				value = value.trim();
			}

			result.put(key, value);
		}
		return result;
	}