question: @ RequestMapping ( value = "/{id}" , method = RequestMethod . DELETE ) @ ResponseBody public RestWrapper delete ( @ PathVariable ( "id" ) Integer batchStateId , Principal principal ) { RestWrapper restWrapper = null ; try { batchStatusDAO . delete ( batchStateId ) ; restWrapper = new RestWrapper ( null , RestWrapper . OK ) ; LOGGER . info ( RECORDWITHID + batchStateId + " deleted from BatchStatus by User:" + principal . getName ( ) ) ; } catch ( MetadataException e ) { LOGGER . error ( e ) ; restWrapper = new RestWrapper ( e . getMessage ( ) , RestWrapper . ERROR ) ; } return restWrapper ; }
target:  This method calls DeleteBatchStatus and fetches a record corresponding to the batchStateId passed.