public String parameterize(String command,Map<String,String> parameters){
  for (  String key : parameters.keySet()) {
    String value=parameters.get(key);
    command=command.replace(key,value);
  }
  return command;
}

public String parameterize ( String command , Map < String , String > parameters ) { for ( String key : parameters . keySet ( ) ) { String value = parameters . get ( key ) ; command = command . replace ( key , value ) ; } return command ; }
substitutes parameter values from a map into a command . this is used to apply % % parm % % style - parameters to a command template .
