@Regex("/counter/([^/]*)/([^/]*)\\?name=(.*)")
public Template counterDetail(final String role, final String unit, final String name, final HttpServletRequest request) {
final Counter counter = Repository.INSTANCE.getCounter(new Counter.Key(new Role(decode(role), Unit.get(unit)), name)); // name is already decoded by servlet container
final Map<String, String[]> params = request.getParameterMap();
final Unit timeUnit = timeUnit(params);
final String format = format(params, HTMLFormat.NUMBER_FORMAT);
final Map<String, Collection<String>> counters = new TreeMap<String, Collection<String>>();
if (AggregatedCounter.class.isInstance(counter)) {
for (final Map.Entry<String, ? extends Counter> marker : AggregatedCounter.class.cast(counter).aggregated().entrySet()) {