private Metric < Double > findCounter ( @ PathVariable ( "name" ) String name ) { @ SuppressWarnings ( "unchecked" ) Metric < Double > c = ( Metric < Double > ) metricRepository . findOne ( COUNTER_PREFIX + name ) ; if ( c == null ) { throw new NoSuchMetricException ( name ) ; } return c ; }
Find a given counter taking care of name conversion between the Spring Boot domain and our domain .