code: function(context) {
          var node = this.createElementDefaultNS("General");
  
          // optional Window element
          if(context.size) {
              node.appendChild(this.createElementDefaultNS(
                  "Window", null,
                  {
                      width: context.size.w,
                      height: context.size.h
                  }
              ));
          }
          
          // required BoundingBox element
          var bounds = context.bounds;
          node.appendChild(this.createElementDefaultNS(
              "BoundingBox", null,
              {
                  minx: bounds.left.toPrecision(18),
                  miny: bounds.bottom.toPrecision(18),
                  maxx: bounds.right.toPrecision(18),
                  maxy: bounds.top.toPrecision(18),
                  SRS: context.projection
              }
          ));
  
          // required Title element
          node.appendChild(this.createElementDefaultNS(
              "Title", context.title
          ));
          
           // optional KeywordList element
           if (context.keywords) {
               node.appendChild(this.write_wmc_KeywordList(context.keywords));
           }
  
           // optional Abstract element
           if (context["abstract"]) {
               node.appendChild(this.createElementDefaultNS(
                   "Abstract", context["abstract"]
               ));
           }
  
           // Optional LogoURL element
           if (context.logo) {
               node.appendChild(this.write_wmc_URLType("LogoURL", context.logo.href, context.logo));
           }
  
           // Optional DescriptionURL element
           if (context.descriptionURL) {
               node.appendChild(this.write_wmc_URLType("DescriptionURL", context.descriptionURL));
           }
  
           // Optional ContactInformation element
           if (context.contactInformation) {
               node.appendChild(this.write_wmc_ContactInformation(context.contactInformation));
           }
  
          // OpenLayers specific map properties
          node.appendChild(this.write_ol_MapExtension(context));
          
          return node;
      }
docs: Method: write_wmc_General
  Create a General node given an context object.
  
  Parameters:
  context - {Object} Context object.
  
  Returns:
  {Element} A WMC General element node.