src/main/java/br/com/caelum/vraptor/html/UrlFactory.java
public static <T> T to(Class<T> controller) {
		VRaptorControllerUrl link = last.get();
		last.set(null);
		if (link == null) {
			link = (VRaptorControllerUrl) url();
		}

		return link.saveUrlTo(controller);
	}
/**
	 * <p>
	 * Configures the {@link VRaptorControllerUrl} stored in the static ThreadLocal field.
	 * If that field is not set, creates a new {@link VRaptorControllerUrl} first, calling
	 * {@link UrlFactory#url()}.
	 * </p>
	 *
	 * @param <T>
	 *            Type of the controller class
	 * @param controller
	 *            Controller class
	 * @return A proxy of the given controller class, generated by
	 *         {@link VRaptorControllerUrl#saveUrlTo(Class)}
	 * @see java.lang.ThreadLocal
	 * @see VRaptorControllerUrl#saveUrlTo(Class)
	 * @see UrlFactory#url()
	 * @see UrlFactory#url(Object)
	 */

Configures the  VRaptorControllerUrl stored in the static ThreadLocal field.
If that field is not set, creates a new  VRaptorControllerUrl first, calling
UrlFactory#url().


Configures the VRaptorControllerUrl stored in the static ThreadLocal field . If that field is not set creates a new VRaptorControllerUrl first calling UrlFactory#url () .
public static <T> T to(Class<T> controller) {
		VRaptorControllerUrl link = last.get();
		last.set(null);
		if (link == null) {
			link = (VRaptorControllerUrl) url();
		}
		return link.saveUrlTo(controller);
	}
public static < T > T to ( Class < T > controller ) { VRaptorControllerUrl link = last . get ( ) ; last . set ( null ) ; if ( link == null ) { link = ( VRaptorControllerUrl ) url ( ) ; } return link . saveUrlTo ( controller ) ; }
<p>
 Configures the {@link VRaptorControllerUrl} stored in the static ThreadLocal field.
<p > Configures the { @link VRaptorControllerUrl } stored in the static ThreadLocal field .