@Override public Cookie bindFromContext(BindingInfo bindingInfo, RoutingContext context) { Cookie result = null; if (bindingInfo.index() < context.cookieCount()) { Iterator<Cookie> it = context.cookies().iterator(); for (int i = 0; i <= bindingInfo.index(); i++) { result = it.next(); } } return result; }