public void merge(RoutingContext context) { RoutingNodeIterator it = context.getChildIterator(); Reply reply = it.removeReply(); LoadBalancer.Node target = (LoadBalancer.Node)context.getContext(); boolean busy = false; for (int i = 0; i < reply.getNumErrors(); i++) { if (reply.getError(i).getCode() == ErrorCode.SESSION_BUSY) { busy = true; } } loadBalancer.received(target, busy); context.setReply(reply); }