private Builder builder(Class<?> controllerClass, String methodName) { Optional<Route> route = this.router.getRouteForControllerClassAndMethod( controllerClass, methodName); if (route.isPresent()) { return new Builder(this.ninjaProperties.getContextPath(), route.get()); } throw new IllegalArgumentException("Reverse route not found for " + controllerClass.getCanonicalName() + "." + methodName); }