private static void addKeyValuePairAsProperty(String pair, Map<String, String> properties) {
		int firstEquals = pair.indexOf('=');
		if (firstEquals != -1) {
			// todo: should key only be a "flag" as in: put(key, true)?
			properties.put(pair.substring(0, firstEquals).trim(), pair.substring(firstEquals + 1).trim());
		}
	}
Adds a String of format key=value to the provided Map as a key/value pair.

@param pair the String representation
@param properties the Map to which the key/value pair should be added
spring-xd-rest-domain/src/main/java/org/springframework/xd/rest/domain/support/DeploymentPropertiesFormat.java