code: function(obj, options) {
          obj = this.toContext(obj);
          return OpenLayers.Format.XML.VersionedOGC.prototype.write.apply(this,
              arguments);
      }
docs: APIMethod: write
  Write a context document given a map.
  
  Parameters:
  obj - {<OpenLayers.Map> | Object} A map or context object.
  options - {Object} Optional configuration object.
  
  Returns:
  {String} A context document string.