class CustomerUpdateWriter implements ItemWriter<Trade> {

	private CustomerDebitDao dao;

	@Override
	public void write(Chunk<? extends Trade> trades) {<FILL_FUNCTION_BODY>}

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

}

		for (Trade trade : trades) {
			CustomerDebit customerDebit = new CustomerDebit();
			customerDebit.setName(trade.getCustomer());
			customerDebit.setDebit(trade.getPrice());
			dao.write(customerDebit);
		}
	
<no_super_class>