return response.then(function (resource) {
        endpoint.resource = resource;
        var elementIndex = _this.findInRelationship(resource.relationships[_this.relationshipName]);
        if (elementIndex == -1) {
          throw "Element Not Found In List";