@RequestMapping(value={"/list/{cg}","/list/{cg}/"},method=RequestMethod.GET) @ResponseBody public RestWrapper list(@PathVariable("cg") String configGroup,Principal principal){
  RestWrapper restWrapper=null;
  GetGeneralConfig generalConfigs=new GetGeneralConfig();
  List<GeneralConfig> generalConfigList=generalConfigs.listGeneralConfig(configGroup);
  restWrapper=new RestWrapper(generalConfigList,RestWrapper.OK);
  LOGGER.info("All records listed with config group :" + configGroup + "from General  Config by User:"+ principal.getName());
  return restWrapper;
}

@ RequestMapping ( value = { "/list/{cg}" , "/list/{cg}/" } , method = RequestMethod . GET ) @ ResponseBody public RestWrapper list ( @ PathVariable ( "cg" ) String configGroup , Principal principal ) { RestWrapper restWrapper = null ; GetGeneralConfig generalConfigs = new GetGeneralConfig ( ) ; List < GeneralConfig > generalConfigList = generalConfigs . listGeneralConfig ( configGroup ) ; restWrapper = new RestWrapper ( generalConfigList , RestWrapper . OK ) ; LOGGER . info ( "All records listed with config group :" + configGroup + "from General  Config by User:" + principal . getName ( ) ) ; return restWrapper ; }
this method calls proc getgeneralconfig and fetches a list of instances of generalconfig .
