question: @ RequestMapping ( value = { "" , "/" } , method = RequestMethod . GET ) @ ResponseBody public RestWrapper list ( @ RequestParam ( value = "page" , defaultValue = "0" ) int startPage , @ RequestParam ( value = "size" , defaultValue = "10" ) int pageSize , Principal principal ) { RestWrapper restWrapper = null ; try { Integer counter = processTypeDAO . totalRows ( ) ; List < com . wipro . ats . bdre . md . dao . jpa . ProcessType > jpaProcessTypes = processTypeDAO . listFull ( startPage , pageSize ) ; List < ProcessType > processTypes = new ArrayList < ProcessType > ( ) ; for ( com . wipro . ats . bdre . md . dao . jpa . ProcessType processType : jpaProcessTypes ) { ProcessType returnProcessType = new ProcessType ( ) ; returnProcessType . setProcessTypeId ( processType . getProcessTypeId ( ) ) ; returnProcessType . setParentProcessTypeId ( processType . getParentProcessTypeId ( ) ) ; returnProcessType . setProcessTypeName ( processType . getProcessTypeName ( ) ) ; returnProcessType . setCounter ( counter ) ; processTypes . add ( returnProcessType ) ; } restWrapper = new RestWrapper ( processTypes , RestWrapper . OK ) ; LOGGER . info ( "All records listed from ProcessType by User:" + principal . getName ( ) ) ; } catch ( MetadataException e ) { LOGGER . error ( e ) ; restWrapper = new RestWrapper ( e . getMessage ( ) , RestWrapper . ERROR ) ; } return restWrapper ; }
target:  This method calls proc GetProcessTypes and fetches a list of instances of ProcessTypes.