public Message process(Message message) throws ActionProcessingException {
Map javaResultMap = (Map) message.getBody().get();
OrderHeader order = (OrderHeader) javaResultMap.get("orderHeader");
Customer customer = (Customer) javaResultMap.get("customer");
//List orderItems = (List) javaResultMap.get("orderItemList");
customer.setStatus(status);
logger.info("--------------------------------");
logger.info("Customer: " + customer);
logger.info("Order: " + order);
logger.info("businessKey: " + order.getOrderId());
logger.info("--------------------------------");
message.getBody().add("orderHeader", order);
message.getBody().add("customer", customer);
message.getBody().add("order_orderId", order.getOrderId());
message.getBody().add("order_orderPriority", order.getOrderPriority());
message.getBody().add("order_totalAmount", order.getTotalAmount());
message.getBody().add("order_discount", order.getOrderDiscount());
message.getBody().add("businessKey", order.getOrderId());
message.getBody().add("customer_firstName", customer.getFirstName());
message.getBody().add("customer_lastName", customer.getLastName());
message.getBody().add("customer_status", customer.getStatus());
logger.info("Moved the transformed Order Header and Customer");
return message;
}