code: function(handler, options) {
          OpenLayers.Control.prototype.initialize.apply(this, [options]);
  
          this.callbacks = OpenLayers.Util.extend({done: this.select, 
              click: this.select}, this.callbacks);
          this.handlerOptions = this.handlerOptions || {};
          this.layerOptions = OpenLayers.Util.applyDefaults(this.layerOptions, {
              displayInLayerSwitcher: false,
              tileOptions: {maxGetUrlLength: 2048}
          });
          if (this.sketchStyle) {
              this.handlerOptions.layerOptions = OpenLayers.Util.applyDefaults(
                  this.handlerOptions.layerOptions,
                  {styleMap: new OpenLayers.StyleMap({"default": this.sketchStyle})}
              );
          }
          this.handler = new handler(this, this.callbacks, this.handlerOptions);
      }
docs: Constructor: OpenLayers.Control.SLDSelect
  Create a new control for selecting features in WMS layers using
  Styled Layer Descriptor (SLD).
  
  Parameters:
  handler - {<OpenLayers.Class>} A sketch handler class. This determines
  the type of selection, e.g. box (<OpenLayers.Handler.Box>), point
  (<OpenLayers.Handler.Point>), path (<OpenLayers.Handler.Path>) or
  polygon (<OpenLayers.Handler.Polygon>) selection. To use circle
  type selection, use <OpenLayers.Handler.RegularPolygon> and pass
  the number of desired sides (e.g. 40) as "sides" property to the
  <handlerOptions>.
  options - {Object} An object containing all configuration properties for
  the control.
  
  Valid options:
  layers - Array({<OpenLayers.Layer.WMS>}) The layers to perform the
  selection on.