throw new BuildException(e);
}
if (!uninstall){
// determine features to enable
FeatureProvider provider = new FeatureProvider();
Feature[] features = provider.getFeatures();
HashMap<String,Feature> featureMap = new HashMap<String,Feature>();
for(Feature feature : features){
featureMap.put(feature.getKey(), feature);
}