private Map<String, String> parse(String s) {
		Map<String, String> deploymentProperties = new HashMap<String, String>();

		if (!StringUtils.isEmpty(s)) {
			Matcher matcher = DEPLOYMENT_PROPERTIES_PATTERN.matcher(s);
			int start = 0;
			while (matcher.find()) {
				addKeyValuePairAsProperty(s.substring(start, matcher.start()), deploymentProperties);
				start = matcher.start() + 1;
			}
			addKeyValuePairAsProperty(s.substring(start), deploymentProperties);
		}
		return deploymentProperties;
	}
private Map < String , String > parse ( String s ) { Map < String , String > deploymentProperties = new HashMap < String , String > ( ) ; if ( ! StringUtils . isEmpty ( s ) ) { Matcher matcher = DEPLOYMENT_PROPERTIES_PATTERN . matcher ( s ) ; int start = 0 ; while ( matcher . find ( ) ) { addKeyValuePairAsProperty ( s . substring ( start , matcher . start ( ) ) , deploymentProperties ) ; start = matcher . start ( ) + 1 ; } addKeyValuePairAsProperty ( s . substring ( start ) , deploymentProperties ) ; } return deploymentProperties ; }
Parses a String comprised of 0 or more comma-delimited key=value pairs where each key has the format:
{@code app.[appname].[key]}.
Values may themselves contain commas, since the split points will be based upon the key pattern.

@param s the string to parse
@return the Map of parsed key value pairs