code: function() {
          var config = OpenLayers.Util.extend({}, this);
          // clone rules
          if (this.rules) {
              config.rules = [];
              for (var i=0, len=this.rules.length; i<len; ++i) {
                  config.rules.push(this.rules[i].clone());
              }
          }
          return new OpenLayers.Style2(config);
      }
docs: APIMethod: clone
  Clones this style.
  
  Returns:
  {<OpenLayers.Style2>} Clone of this style.