code: function mergeLinks(source, target, pathArr, ancestorType) {
      var refType = ancestorType + ((pathArr.length > 1) ? "." + _.rest(pathArr).join(".") : "");
  
      var link = source.links && source.links[refType];
  
      if (link) target.links[rootName(target) + "." + pathArr.join(".")] = link;
    }
docs: Append meta data of included type to the links section of root resource.
  
  @param {Object} The source from the external lookup.
  @param {Object} The target resource.
  @param {Object} The include properties.
  @param {Object} The lookup resource type.
  @api private