List<Map.Entry<ContextPathMatcher, HttpServerChannelHandler>> candidates = new ArrayList<Map.Entry<ContextPathMatcher, HttpServerChannelHandler>>();
// first match by http method
for (Map.Entry<ContextPathMatcher, HttpServerChannelHandler> entry : consumers.entrySet()) {
NettyHttpConsumer consumer = entry.getValue().getConsumer();
String restrict = consumer.getEndpoint().getHttpMethodRestrict();
if (entry.getKey().matchMethod(method, restrict)) {
candidates.add(entry);
}
}