code: function(otherVersion) {
              var thisVersion = this.version;
              if (thisVersion === "default") {
                  thisVersion = "5.0";
              }
  
              var components1 = thisVersion.split(".");
              var components2 = otherVersion.split(".");
              var numComponents = Math.max(components1.length, components2.length);
  
              for (var i = 0; i < numComponents; i++) {
                  var c1 = (i < components1.length) ? parseInt(components1[i], 10) : 0;
                  var c2 = (i < components2.length) ? parseInt(components2[i], 10) : 0;
                  if (c1 < c2) {
                      return -1;
                  } else if (c1 > c2) {
                      return 1;
                  }
              }
              return 0;
          }
docs: Compares the Splunk server's version to the specified version string.
  Returns -1 if (this.version <  otherVersion),
  0 if (this.version == otherVersion),
  1 if (this.version >  otherVersion).
  
  @param {String} otherVersion The other version string, for example "5.0".
  
  @method splunkjs.Context