OrderMaintActionForm form = (OrderMaintActionForm) actionForm;
EntityManager em = JpaConnection.getInstance().getCurrentEntityManager();
OrderHeader orderHeader = (OrderHeader) em.find(OrderHeader.class, Format.getLong(form.getOrderHeaderId()));
String orderTrackingMessage = form.getOrderTrackingMessage();
if (!Format.isNullOrEmpty(orderTrackingMessage)) {
AdminBean adminBean = getAdminBean(request);
User user = adminBean.getUser();
OrderTracking orderTracking = new OrderTracking();
orderTracking.setOrderTrackingCode("");
orderTracking.setOrderTrackingMessage(orderTrackingMessage);
if (form.isOrderTrackingInternal()) {
orderTracking.setOrderTrackingInternal(String.valueOf(Constants.VALUE_YES));