/** * Define a relationship for the given rel name to a URL. If supported, * the output rendering (serialization) will be an array (or list) instead * of a single object for this rel name. * * @param name the relationship name (rel name). * @param href the URL, possibly templated. * @return this relationship definition instance to facilitate method chaining. */ public RelationshipDefinition rels(String name, String href) { return rels(name, factory.newLinkBuilder(href)); }