@RequestMapping(MODULE_URL + "subscribed") public String subscribed(HttpSession httpSession, ModelMap model) { ImportedPackage importedPackage = getService().getSubscribedDictionary(); if (importedPackage.hasSubscriptionErrors()) { httpSession.setAttribute( WebConstants.OPENMRS_ERROR_ATTR, "Unable to subscribe to url: " + importedPackage.getSubscriptionStatus()); } model.addAttribute("dictionary", getService().getSubscribedDictionary()); model.addAttribute("url", importedPackage.getSubscriptionUrl()); return null; }