title: mapsqlparametersource vs java.util.map
body: <p>I read in spring documentation that MapSqlParameterSource is just a wrapper over Map. What is the advantage of using MapSqlParameterSource instead of Map?</p>
  
  <pre><code>public int countOfActorsByFirstName(String firstName) {
  
      String sql = "select count(*) from T_ACTOR where first_name = :first_name";
  
      SqlParameterSource namedParameters = new MapSqlParameterSource("first_name", firstName);
  
      return this.namedParameterJdbcTemplate.queryForObject(sql, namedParameters, Integer.class);
  }
  
  
  
  
  public int countOfActorsByFirstName(String firstName) {
  
      String sql = "select count(*) from T_ACTOR where first_name = :first_name";
  
      Map&lt;String, String&gt; namedParameters = Collections.singletonMap("first_name", firstName);
  
      return this.namedParameterJdbcTemplate.queryForObject(sql, namedParameters,  Integer.class);
  }
  </code></pre>