code: function(feature, geoms) {
          var clone = feature.clone();
          delete clone.geometry;
          var newFeature;
          for(var i=0, len=geoms.length; i<len; ++i) {
              // turn results list from geoms to features
              newFeature = clone.clone();
              newFeature.geometry = geoms[i];
              newFeature.state = OpenLayers.State.INSERT;
              geoms[i] = newFeature;
          }
      }
docs: Method: geomsToFeatures
  Create new features given a template feature and a list of geometries.
  The list of geometries is modified in place.  The result will be
  a list of new features.
  
  Parameters:
  feature - {<OpenLayers.Feature.Vector>} The feature to be cloned.
  geoms - {Array(<OpenLayers.Geometry>)} List of goemetries.  This will
  become a list of new features.