class CustomerCreditUpdateWriter implements ItemWriter<CustomerCredit> {

	private double creditFilter = 800;

	private CustomerCreditDao dao;

	@Override
	public void write(Chunk<? extends CustomerCredit> customerCredits) throws Exception {<FILL_FUNCTION_BODY>}

	public void setCreditFilter(double creditFilter) {
		this.creditFilter = creditFilter;
	}

	public void setDao(CustomerCreditDao dao) {
		this.dao = dao;
	}

}

		for (CustomerCredit customerCredit : customerCredits) {
			if (customerCredit.getCredit().doubleValue() > creditFilter) {
				dao.writeCredit(customerCredit);
			}
		}
	
<no_super_class>