code: function(obj) {
          if (obj == null) {
              obj = new OpenLayers.Layer.WMTS(this.options);
          }
          //get all additions from superclasses
          obj = OpenLayers.Layer.Grid.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.WMTS>} An exact clone of this <OpenLayers.Layer.WMTS>