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 ; }
Replaces placeholders in the template start command with values from startCommandValues .