List<ControllerHandler> handlers = resolver.resolveMethods(Phase.EVENT, null, request.getParameterMap().keySet());
//
ControllerHandler target = null;
for (ControllerHandler handler : handlers) {
Consumes consumes = handler.getMethod().getAnnotation(Consumes.class);
if (consumes.value().equals("")) {
target = handler;
// we don't break here on purpose because having empty match is less important
// than an explicit match
} else if (consumes.value().equals(request.getEvent().getName())) {
target = handler;
break;
}
}