/**
  * Updates the settings to the configuration specfied in the parameters
  *
  * @param settings the new settings configuration
  * @return the new settings configuration
  */
 @RequestMapping(value = "/dhis2-settings", method = RequestMethod.POST)
 @ResponseStatus(HttpStatus.OK)
 @ResponseBody
 @PreAuthorize("hasRole('configureDhis')")
 public Settings updateSettings(@RequestBody Settings settings) {
   settingsService.updateSettings(settings);
   return settingsService.getSettings();
 }
 /**
  * Returns the settings for the module
  *
  * @return an {@link Settings} object for the DHIS2 module
  */
 @RequestMapping(value = "/dhis2-settings", method = RequestMethod.GET)
 @ResponseBody
 @PreAuthorize("hasRole('configureDhis')")
 public Settings getSettings() {
   return settingsService.getSettings();
 }