question: private String insertProperties ( String template , Map < String , String > properties ) { for ( Entry < String , String > entry : properties . entrySet ( ) ) { template = template . replace ( entry . getKey ( ) , entry . getValue ( ) ) ; } return template ; }
target:  Inserts properties to the template.