question: private String replacePlaceholders ( String query , Map < String , String > replacements ) { String resultQuery = query ; for ( Map . Entry < String , String > entry : replacements . entrySet ( ) ) { resultQuery = resultQuery . replace ( entry . getKey ( ) , entry . getValue ( ) ) ; } return resultQuery ; }
target:  Replaces the placeholders with concrete values