code: public static String getStartCommand(String template,
  		Map<String, String> startCommandValues) {
  		for (Map.Entry<String, String> variable : startCommandValues
  			.entrySet()) {
  			template = template
  				.replace("%" + variable.getKey() + "%", variable.getValue());
  		}
  		return template;
  	}
docs: Replaces placeholders in the template start command with values from startCommandValues.
  
  <p>If the default template {@link ConfigConstants#DEFAULT_YARN_CONTAINER_START_COMMAND_TEMPLATE}
  is used, the following keys must be present in the map or the resulting
  command will still contain placeholders:
  <ul>
  <li><tt>java</tt> = path to the Java executable</li>
  <li><tt>jvmmem</tt> = JVM memory limits and tweaks</li>
  <li><tt>jvmopts</tt> = misc options for the Java VM</li>
  <li><tt>logging</tt> = logging-related configuration settings</li>
  <li><tt>class</tt> = main class to execute</li>
  <li><tt>args</tt> = arguments for the main class</li>
  <li><tt>redirects</tt> = output redirects</li>
  </ul>
  
  @param template
  a template start command with placeholders
  @param startCommandValues
  a replacement map <tt>placeholder -&gt; value</tt>
  
  @return the start command with placeholders filled in