code: public void register() {
          routes.values().forEach(route -> logAddRoute(log, route));
          hooks.values().stream().flatMap(Collection::stream).forEach(route -> logAddRoute(log, route));
  
          Stream.of(routes.values(), hooks.values().stream().findAny().orElse(new ArrayList<>()))
                  .flatMap(Collection::stream).forEach(this::registerRoute);
  
          regexMapping.register();
  
          webSockets.keySet().forEach(path -> logWebSocket(log, path));
      }
docs: register route to container