final long batchSize = to - from + 1;
final int policySeriesId = series.getId();
final int policyTypeId = series.getPolicyType().getId();
final String sqlInsert = "INSERT INTO BlankPolicy(issuedToAgent, inventoryDate," +
" number, series_id, policyType_id, inventoryPolicyState, agent_passport_series) VALUES(?,?,?,?,?,?,?)";
jdbcTemplate.batchUpdate(sqlInsert, new BatchPreparedStatementSetter() {
private java.sql.Date currentDate = new java.sql.Date(new Date().getTime());
@Override
public void setValues(PreparedStatement ps, int i) throws SQLException {