if (orderName != null && orderId != null) {
throw new IllegalArgumentException("Only orderName or orderId attribute may be specified on orderLookup tag");
} else if (orderId != null) {
order = cartService.findOrderById(orderId);
} else if (orderName != null) {
order = cartService.findNamedOrderForCustomer(orderName, customer);
} else if (customer != null){
order = cartService.findCartForCustomer(customer);
}
if (orderVar != null) {
pageContext.setAttribute(orderVar, order);