@RequestMapping(params = "action=updateConfiguration")
  public void saveConfiguration(
      ActionRequest request,
      ActionResponse response,
      @ModelAttribute("config") AnnouncementConfiguration config,
      @RequestParam(value = "save", required = false) String save)
      throws PortletModeException {

    if (StringUtils.isNotBlank(save)) {
      log.debug("Saving announcement configuration: {" + config.toString() + "}");
      configService.saveConfiguration(request, config);
    }

    response.setPortletMode(PortletMode.VIEW);
  }
 @ModelAttribute("config")
 public AnnouncementConfiguration announcementConfiguration(final PortletRequest request) {
   final AnnouncementConfiguration config = configService.getConfiguration(request);
   return config;
 }