class Router implements RoutingService {

    @Override
    public Collection<RouteEntry> getRoutes4() {
        return routeService.getAllRoutes().get(new RouteTableId("ipv4")).stream()
                .map(route -> new RouteEntry(route.prefix(), route.nextHop()))
                .collect(Collectors.toList());
    }

}