code: public static Navigate to(Class<?> clazz)
     {
  
        Assert.notNull(clazz, "clazz must not be null");
  
        @SuppressWarnings("unchecked")
        Iterable<ResourcePathResolver> resolvers = ServiceLoader.load(ResourcePathResolver.class);
  
        for (ResourcePathResolver resolver : resolvers) {
           String viewId = resolver.resolveFrom(clazz);
           if (viewId != null) {
              return new Navigate(viewId);
           }
        }
  
        throw new IllegalArgumentException("Unable to find the resource path for: " + clazz.getName());
     }
docs: Create a new {@link Navigate} instance that will invoke navigation to the specified {@link Class}. For instance,
  if the class specifies a {@literal @}Join rule, this would generate a navigation case targeting the
  {@link Address} for the defined resource.
  <p>
  Query parameters to be provided to the destination View ID may be supplied via {@link #with(CharSequence, Object)}.
  
  @see ResourcePathResolver
  
  @param clazz the target {@link Class}