code: function(context) {
          var node = OpenLayers.Format.WMC.v1.prototype.write_wmc_Layer.apply(
              this, [context]
          );
      
          // optional SRS element(s)
          if (context.srs) {
              var projections = [];
              for(var name in context.srs) {
                  projections.push(name);
              }
              node.appendChild(this.createElementDefaultNS("SRS", projections.join(" ")));
          }
  
          // optional FormatList element
          node.appendChild(this.write_wmc_FormatList(context));
  
          // optional StyleList element
          node.appendChild(this.write_wmc_StyleList(context));
          
          // optional DimensionList element
          if (context.dimensions) {
              node.appendChild(this.write_wmc_DimensionList(context));
          }
  
          // OpenLayers specific properties go in an Extension element
          node.appendChild(this.write_wmc_LayerExtension(context));
      }
docs: Method: write_wmc_Layer
  Create a Layer node given a layer context object. This method adds
  elements specific to version 1.0.0.
  
  Parameters:
  context - {Object} A layer context object.}
  
  Returns:
  {Element} A WMC Layer element node.