code: public static String formatSystemProperties(Configuration jvmArgs) {
  		StringBuilder sb = new StringBuilder();
  		for(Map.Entry<String,String> entry : jvmArgs.toMap().entrySet()) {
  			if(sb.length() > 0) {
  				sb.append(" ");
  			}
  			boolean quoted = entry.getValue().contains(" ");
  			if(quoted) {
  				sb.append("\"");
  			}
  			sb.append("-D").append(entry.getKey()).append('=').append(entry.getValue());
  			if(quoted) {
  				sb.append("\"");
  			}
  		}
  		return sb.toString();
  	}
docs: Format the system properties as a shell-compatible command-line argument.