code: function (obj) {
        if (obj == null) {
              obj = new OpenLayers.Layer.MapGuide(this.name,
                                             this.url,
                                             this.params,
                                             this.getOptions());
        }
        //get all additions from superclasses
        obj = OpenLayers.Layer.Grid.prototype.clone.apply(this, [obj]);
  
        return obj;
      }
docs: Method: clone
  Create a clone of this layer
  
  Returns:
  {<OpenLayers.Layer.MapGuide>} An exact clone of this layer