/*
  * Create and return a new feature object with the given parameters.
  */
 public Feature createFeature(Site site, String id, String version, String url) {
   Feature result = new Feature(site);
   result.setId(id);
   result.setVersion(version);
   result.setUrl(url);
   return result;
 }
 /**
  * Add new feature to the features list.
  *
  * @param feature The feature containing the feature attributes.
  */
 public void addFeature(final Feature feature) {
   if (feature == null) {
     return;
   }
   feature.setId(mFeatures.size());
   mFeatures.add(feature);
   save();
 }