question: @ RequestMapping ( value = { "/" , "" } , method = RequestMethod . PUT ) @ ResponseBody public RestWrapper insert ( @ ModelAttribute ( "file" ) @ Valid File file , BindingResult bindingResult , Principal principal ) { RestWrapper restWrapper = null ; if ( bindingResult . hasErrors ( ) ) { BindingResultError bindingResultError = new BindingResultError ( ) ; return bindingResultError . errorMessage ( bindingResult ) ; } try { file . setCreationTS ( DateConverter . stringToDate ( file . getTableCreationTS ( ) ) ) ; fileDAO . insert ( file ) ; restWrapper = new RestWrapper ( file , RestWrapper . OK ) ; LOGGER . info ( "Record with ID:" + file . getBatchId ( ) + " inserted in File by User:" + principal . getName ( ) + file ) ; } catch ( MetadataException e ) { LOGGER . error ( e ) ; restWrapper = new RestWrapper ( e . getMessage ( ) , RestWrapper . ERROR ) ; } return restWrapper ; }
target:  This method calls proc InsertFile and adds a record of File. It also validates the values passed.