private Map<String, String> parsePropertiesString(String propertiesString) {
		Map<String, String> variableMap = new HashMap<String, String>();
		if (StringUtils.hasText(propertiesString)) {
			String[] nameValues = propertiesString.split(",");
			for (String nameValue : nameValues) {
				String[] tokens = nameValue.split("=");
				Assert.state(tokens.length == 2, "Invalid 'properties' format: " + propertiesString);
				String name = tokens[0].trim();
				String value = tokens[1].trim();
				variableMap.put(name, value);
			}
		}
		return variableMap;
	}
{@link org.springframework.beans.factory.config.PropertiesFactoryBean} that
reads comma separated (ex: key1=value1,key2=value2) values and make them as properties.

@author David Turanski
@author Ilayaperumal Gopinathan
extensions/spring-xd-extension-mail/src/main/java/org/springframework/xd/mail/JavaMailPropertiesFactoryBean.java