/**
  * Handles GET requests of the URL "/datarecords"<br>
  * This method is used to retrieve data records. The GET parameter name is used for filtering the
  * result. If this parameter is not provided all results are returned.
  *
  * @param name Filter for field name
  * @return List including retrieved data records + status 200 OK
  */
 @RequestMapping(value = "/datarecords", method = RequestMethod.GET, produces = "application/json")
 public ResponseEntity<List<DataRecord>> findDataRecordsByName(
     @RequestParam(value = "name", defaultValue = "") String name) {
   if (name.length() == 0) return new ResponseEntity<>(service.findTop100(), HttpStatus.OK);
   else
     return new ResponseEntity<>(
         service.findTop100ByNameContainingIgnoreCase(name), HttpStatus.OK);
 }