question: @ 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 ; }
target:  This method calls proc GetGeneralConfig and fetches a list of instances of GeneralConfig.