class SimpleLoadBalanceFilter implements Filter {

  @Override
  public CompletableFuture<Response> onFilter(Invocation invocation, FilterNode nextNode) {
    if (invocation.getEndpoint() != null) {
      return nextNode.onFilter(invocation);
    }

    invocation.setEndpoint(selectEndpoint(invocation));
    return nextNode.onFilter(invocation);
  }

  public  SimpleLoadBalanceFilter();

}