code: function (response) {
                var swagger = response.obj;
                self.resolveItem(swagger, item.root, resolutionTable, resolvedRefs, unresolvedRefs, item);
                processedCalls += 1;
  
                if (processedCalls === expectedCalls) {
                  self.finish(spec, _root, resolutionTable, resolvedRefs, unresolvedRefs, callback);
                }
              }
docs: jshint ignore:line