if (accountBean == null || !accountBean.isAuthenticated()){
ActionContext.getActionContext().setSimpleMessage("You must sign on before attempting to check out. Please sign on and try checking out again.");
return "signon";
} else if (cartBean != null) {
// Re-read account from DB at team's request.
Account account = accountService.getAccount(accountBean.getAccount().getUsername());
order.initOrder(account, cartBean.getCart());
return "success";
} else {
ActionContext.getActionContext().setSimpleMessage("An order could not be created because a cart could not be found.");
return "failure";