code: function resourcesFunction(link, parameters, actions, options) {
                      var url;
                      // process the url and call the resources function with the given parameters
                      if (link.templated) {
                          url = new URITemplate(link[config.linksHrefKey]);
                          url = url.fill(parameters);
                          // set parameters to undefined since they are resolved by the uri template expansion,
                          // otherwise it will duplicate parameters
                          parameters = undefined;
                      } else {
                          url = link[config.linksHrefKey];
                      }
  
                      if (config.resourcesFunction === undefined) {
  
                          actions = actions ? actions : {};
                          angular.extend(actions, {
                              'get': { method: 'GET', headers: { 'accept': HYPERMEDIA_TYPE } },
                              'save': { method: 'POST', headers: { 'accept': HYPERMEDIA_TYPE } },
                              'query': { method: 'GET', headers: { 'accept': HYPERMEDIA_TYPE } },
                              'remove': { method: 'DELETE', headers: { 'accept': HYPERMEDIA_TYPE } },
                              'delete': { method: 'DELETE', headers: { 'accept': HYPERMEDIA_TYPE } }
                          });
  
                          return $injector.get('$resource')(url, parameters, actions, options);
                      } else {
                          return config.resourcesFunction(url, parameters, actions, options);
                      }
                  }
docs: /*
  Returns the Angular $resource method which is configured with the given parameters.
  
  @param {object} link the resource object (link property value)
  @param {object} parameters $resource method parameters
  @param {object} actions optional $resource method actions
  @param {object} options additional $resource method options
  @returns {*}