code: function (obj) {
          
          if (obj == null) {
              obj = new OpenLayers.Layer.HTTPRequest(this.name,
                                                     this.url,
                                                     this.params,
                                                     this.getOptions());
          }
          
          //get all additions from superclasses
          obj = OpenLayers.Layer.prototype.clone.apply(this, [obj]);
  
          // copy/set any non-init, non-simple values here
          
          return obj;
      }
docs: APIMethod: clone
  
  Parameters:
  obj - {Object}
  
  Returns:
  {<OpenLayers.Layer.HTTPRequest>} An exact clone of this
  <OpenLayers.Layer.HTTPRequest>