public static <T>T templateFor(final Class<T> mixinType,Association<?> association){
  NullArgumentException.validateNotNull("Mixin class",mixinType);
  NullArgumentException.validateNotNull("Association",association);
  return mixinType.cast(Proxy.newProxyInstance(mixinType.getClassLoader(),array(mixinType),new TemplateHandler<T>(null,association(association),null,null)));
}

public static < T > T templateFor ( final Class < T > mixinType , Association < ? > association ) { NullArgumentException . validateNotNull ( "Mixin class" , mixinType ) ; NullArgumentException . validateNotNull ( "Association" , association ) ; return mixinType . cast ( Proxy . newProxyInstance ( mixinType . getClassLoader ( ) , array ( mixinType ) , new TemplateHandler < T > ( null , association ( association ) , null , null ) ) ) ; }
create a query template using the given mixin class and association .
