public void addConsumer(NettyHttpConsumer consumer) {
String rawPath = consumer.getConfiguration().getPath();
String path = pathAsKey(consumer.getConfiguration().getPath());
// use rest path matcher in case Rest DSL is in use
ContextPathMatcher matcher = new RestContextPathMatcher(rawPath, path, consumer.getEndpoint().getHttpMethodRestrict(), consumer.getConfiguration().isMatchOnUriPrefix());
consumers.put(matcher, new HttpServerChannelHandler(consumer));
}