code: function (rel, parameters, actions, options) {
                      var homeResource = this.getDefinition(rel);
  
                      actions = actions ? actions : {};
                      angular.extend(actions, {
                          get: {
                              method: 'GET',
                              headers: { 'accept': HYPERMEDIA_TYPE }
                          }
                      });
  
                      if (homeResource.href) {
                          return $resource(homeResource.href, parameters, actions, options);
                      }
                      else {
                          var url = new URITemplate(homeResource['href-template']);
                          url = url.fill(parameters);
                          return $resource(url, undefined, actions, options);
                      }
                  }
docs: @ngdoc function
  @name w20CoreHypermedia.service:HomeService#enter
  @methodOf w20CoreHypermedia.service:HomeService
  @param {String} rel the relation (link) of the home resource to retrieve
  @param {Object} parameters the parameters for the resource url
  @param {Object} actions optional $resource method actions
  @param {Object} options additional $resource method options
  @returns {Object} the $resource for this home resource
  
  @description
  
  Provide a $resource object configured from a registered home resource.
  This method allow to enter an hypermedia endpoint