code: function getProcessedUrl(data, resourceName) {
                          // get the raw URL out of the resource name and check if it is valid
                          var url = data[config.linksKey][resourceName][config.linksHrefKey];
  
                          if (url === undefined || !url) {
                              throw new Error('The provided resource name "' + resourceName + '" has no valid URL in the "' +
                                  config.linksHrefKey + '" property.');
                          }
  
                          // extract the template parameters of the raw URL
                          return extractUrl(url, data[config.linksKey][resourceName].templated);
                      }
docs: /*
  Gets the processed URL of the given resource name form the given data object.
  @param {object} data the given data object
  @param {string} resourceName the resource name from which the URL is retrieved
  @returns {string} the processed url