public function initialize(Context $context, $module)
 {
     parent::initialize($context, $module);
     if (!$this->getBillingAddress()) {
         $billing = new AddressModel();
         $billing->initialize($context, $module);
         $billing->setAddressType(AddressModel::TYPE_BILLING);
         $this->setAddress(AddressModel::TYPE_BILLING, $billing);
     }
     if (!$this->getShippingAddress()) {
         $shipping = new AddressModel();
         $shipping->initialize($context, $module);
         $shipping->setAddressType(AddressModel::TYPE_SHIPPING);
         $this->setAddress(AddressModel::TYPE_SHIPPING, $shipping);
     }
     if (!$this->getCustomer()) {
         $customer = new CustomerModel();
         $customer->initialize($context, $module);
         $this->setCustomer($customer);
     }
 }
 public function initialize(Context $context, $module)
 {
     parent::initialize($context, $module);
     $this->loadData();
 }