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;
}

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 ; }
replaces the placeholders with concrete values
