code: function(context) {
          var node = this.createElementDefaultNS(
              "Layer", null, {
                  queryable: context.queryable ? "1" : "0",
                  hidden: context.visibility ? "0" : "1"
              }
          );
          
          // required Server element
          node.appendChild(this.write_wmc_Server(context));
  
          // required Name element
          node.appendChild(this.createElementDefaultNS(
              "Name", context.name
          ));
          
          // required Title element
          node.appendChild(this.createElementDefaultNS(
              "Title", context.title
          ));
  
           // optional Abstract element
           if (context["abstract"]) {
               node.appendChild(this.createElementDefaultNS(
                   "Abstract", context["abstract"]
               ));
           }
  
           // optional DataURL element
           if (context.dataURL) {
               node.appendChild(this.write_wmc_URLType("DataURL", context.dataURL));
           }
  
          // optional MetadataURL element
          if (context.metadataURL) {
               node.appendChild(this.write_wmc_URLType("MetadataURL", context.metadataURL));
          }
          
          return node;
      }
docs: Method: write_wmc_Layer
  Create a Layer node given a layer context object.
  
  Parameters:
  context - {Object} A layer context object.}
  
  Returns:
  {Element} A WMC Layer element node.