code: private void registerControllerMethods(Map<Method, Class<? extends Annotation>> controllerMethods, Controller controller) {
          List<Route> controllerRoutes = createControllerRoutes(controllerMethods);
          for (Route controllerRoute : controllerRoutes) {
              if (controller != null) {
                  ((ControllerHandler) controllerRoute.getRouteHandler()).setController(controller);
                  controllerRoute.bind("__controller", controller);
              }
          }
  
          this.routes.addAll(controllerRoutes);
      }
docs: Register the controller methods as routes.
  
  @param controllerMethods
  @param controller