code: function(method, response, options) {
          return OpenLayers.Function.bind(function() {
              method.apply(this, [response, options]);
          }, this);
      }
docs: Method: createCallback
  Returns a function that applies the given public method with resp and
  options arguments.
  
  Parameters:
  method - {Function} The method to be applied by the callback.
  response - {<OpenLayers.Protocol.Response>} The protocol response object.
  options - {Object} Options sent to the protocol method