code: public Optional<EndpointRouter> getRouter(EndpointRouter.Protocol protocol) {
        return endpointRouters.stream().filter(r -> r.getProtocol() == protocol).findFirst();
     }
docs: Gets internal {@link EndpointRouter} implementation for given protocol.
  
  @param protocol Protocol for obtaining the router.
  @return The {@link EndpointRouter} implementation.