code: function apiResponded(apiResponse) {
        // Convert XML to JS object
        var parser = new xml2js.Parser({explicitArray:false});
        parser.parseString(apiResponse, function (err, result) {
          // If the method processes the response, give it back
          // Otherwise call the original callback
  
          if(typeof a.processor !== 'undefined')
            a.processor(result.response, a.callback);
          else
            a.callback(result.response);
        });
  
  
      }
docs: Process API response