code: function(context, options) {
          options = OpenLayers.Util.applyDefaults({
              maxExtent:  context.maxExtent,
              projection: context.projection,
              units:      context.units
          }, options);
  
          if (options.maxExtent) {
              options.maxResolution = 
                  options.maxExtent.getWidth() / OpenLayers.Map.TILE_WIDTH;
          }
  
          var metadata = {
              contactInformation: context.contactInformation,
              "abstract":         context["abstract"],
              keywords:           context.keywords,
              logo:               context.logo,
              descriptionURL:     context.descriptionURL
          };
  
          options.metadata = metadata;
  
          var map = new OpenLayers.Map(options);
          map.addLayers(this.getLayersFromContext(context.layersContext));
          map.setCenter(
              context.bounds.getCenterLonLat(),
              map.getZoomForExtent(context.bounds, true)
          );
          return map;
      }
docs: Method: contextToMap
  Create a map given a context object.
  
  Parameters:
  context - {Object} The context object.
  options - {Object} Default map options.
  
  Returns:
  {<OpenLayers.Map>} A map based on the context object.