@RequestMapping(value = "/openCustomer.htm") public ModelAndView openCustomer(@RequestParam("id") String cutomerId) throws Exception { ModelAndView mav = new ModelAndView(); LOGGER.info("cutomerId: " + cutomerId); try { Customer cust = customerService.openCustomer(cutomerId); List<Policy> policies = policyService.getCustomerPolicies(cutomerId); mav.setViewName("AddCustomer"); mav.addObject("policies", policies); mav.addObject("customer", cust); return mav; } catch (Exception e) { mav.setViewName("Exception"); mav.addObject("exceptionReason", e.getMessage()); return mav; } }