iterator = header.getCreditHeaders().iterator();
while (iterator.hasNext()) {
CreditHeader creditHeader = (CreditHeader) iterator.next();
CreditDetailDisplayForm creditDisplayForm = new CreditDetailDisplayForm();
creditDisplayForm.setCreditNum(creditHeader.getCreditNum());
creditDisplayForm.setCreditTotal(numberFormatter.formatCurrency(creditHeader.getCreditTotal()));
creditDisplayForm.setCreditStatusDesc(resources.getMessage("order.status." + creditHeader.getCreditStatus()));
creditDisplayForm.setCreditDatetime(numberFormatter.formatDate(creditHeader.getCreditDate()));
creditVector.add(creditDisplayForm);
}
form.setCreditDetails(creditVector);