code: function(options) {
          OpenLayers.Protocol.WFS.v1.prototype.initialize.apply(this, arguments);
          if (this.outputFormat && !this.readFormat) {
              if (this.outputFormat.toLowerCase() == "gml2") {
                  this.readFormat = new OpenLayers.Format.GML.v2({
                      featureType: this.featureType,
                      featureNS: this.featureNS,
                      geometryName: this.geometryName
                  });
              } else if (this.outputFormat.toLowerCase() == "json") {
                  this.readFormat = new OpenLayers.Format.GeoJSON();
              }
          }
      }
docs: Constructor: OpenLayers.Protocol.WFS.v1_1_0
  A class for giving layers WFS v1.1.0 protocol.
  
  Parameters:
  options - {Object} Optional object whose properties will be set on the
  instance.
  
  Valid options properties:
  featureType - {String} Local (without prefix) feature typeName (required).
  featureNS - {String} Feature namespace (optional).
  featurePrefix - {String} Feature namespace alias (optional - only used
  if featureNS is provided).  Default is 'feature'.
  geometryName - {String} Name of geometry attribute.  Default is 'the_geom'.
  outputFormat - {String} Optional output format to use for WFS GetFeature
  requests. This can be any format advertized by the WFS's
  GetCapabilities response. If set, an appropriate readFormat also
  has to be provided, unless outputFormat is GML3, GML2 or JSON.
  readFormat - {<OpenLayers.Format>} An appropriate format parser if
  outputFormat is none of GML3, GML2 or JSON.