@ResponseBody
@RequestMapping(value = "/{name}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
public FieldValueCounterResource display(@PathVariable("name") String name) {
FieldValueCounter c = repository.findOne(name);
if (c == null) {
throw new NoSuchMetricException(name, "There is no field-value-counter named '%s'");
}
return fvcResourceAssembler.toResource(c);
}