}
@Override
protected void doProcess(Exchange exchange, TimerEndpoint endpoint, MetricRegistry registry, String metricsName) throws Exception {
Message in = exchange.getIn();
TimerAction action = endpoint.getAction();
TimerAction finalAction = in.getHeader(HEADER_TIMER_ACTION, action, TimerAction.class);
if (finalAction == TimerAction.start) {
handleStart(exchange, registry, metricsName);
} else if (finalAction == TimerAction.stop) {
handleStop(exchange, registry, metricsName);
} else {