applications->getByIdForCustomer( (int)$this->getRequest()->getParam('id'), (int)$this->customerSession->getCustomerId() ); $this->registry->register('current_customer_vat', $application); $page = $this->pageFactory->create(); $page->getConfig()->getTitle()->set(__('Edit VAT Number')); return $page; } catch (\Throwable $exception) { $this->messageManager->addErrorMessage($exception->getMessage()); return $this->resultRedirectFactory->create()->setPath('*/*/index'); } } }