String customerOrderType)
throws BPException {
errors=new HashMap<String, String>();
//Check customer
if(!validateCustomer(customerName)){
throw new BPException(errors);
}
//Check order type
if(!validateOrderType(customerOrderType)){
throw new BPException(errors);
}
//Create Order but do not persist yet
order=new CustomerOrder();
order.setCustomer(customer);
order.setType(orderType);