saveInput(form, creditEngine);
try {
creditEngine.creditOrder(request);
creditEngine.saveOrder();
invoiceHeader.setInvoiceStatus(creditEngine.calcStatus(invoiceHeader));
orderHeader.setOrderStatus(creditEngine.calcStatus(orderHeader));
}
catch (OrderStateException e) {
initOrder(form, orderHeader, null, creditHeader, null, request);
calcTotal(form, creditHeader.getCreditHeaderId(), creditEngine);