code: public static HalRelation build(String relName, Class<?> resourceType, UriBuilder urlTemplate) {
      HalRelation relation = new HalRelation();
      relation.relName = relName;
      relation.uriTemplate = urlTemplate;
      relation.resourceType = resourceType;
      return relation;
    }
docs: Build a relation to a resource.
  
  @param relName the name of the relation.
  @param resourceType the type of the resource
  @return the relation