class InstanceOfferDao extends NamedParameterJdbcDaoSupport {

    public List<InstanceType> loadInstanceTypes(InstanceOfferRequestVO instanceOfferRequestVO) {
        MapSqlParameterSource params = new MapSqlParameterSource();
        String query = wherePattern.matcher(loadInstanceTypesQuery)
                .replaceFirst(makeFilterCondition(instanceOfferRequestVO, params));
        return getNamedParameterJdbcTemplate().query(query, params, InstanceTypeParameters.getRowMapper());
    }

}