class SessionRouteRegistry extends AbstractRouteRegistry {

    @Override
    public List<RouteData> getRegisteredRoutes() {
        List<RouteData> routes = new ArrayList<>(super.getRegisteredRoutes());

        List<RouteData> registeredRoutes = getParentRegistry()
                .getRegisteredRoutes();
        if (!registeredRoutes.isEmpty()) {
            Set<String> collect = routes.stream().map(RouteData::getTemplate)
                    .collect(Collectors.toSet());
            registeredRoutes.stream()
                    .filter(data -> !collect.contains(data.getTemplate()))
                    .forEach(routes::add);
        }

        return routes;
    }

      SessionRouteRegistry(VaadinSession session);

}