return;
}
FeatureMetaData metadata = featureManager.getMetaData(feature);
List<ActivationStrategy> impls = featureManager.getActivationStrategies();
FeatureModel featureModel = new FeatureModel(feature, metadata, impls);
// GET requests for this feature
if ("GET".equals(request.getMethod())) {
FeatureState state = featureManager.getFeatureState(feature);
featureModel.populateFromFeatureState(state);
renderEditPage(event, featureModel);
}
// POST requests for this feature
if ("POST".equals(request.getMethod())) {
featureModel.restoreFromRequest(request);
// no validation errors
if (featureModel.isValid()) {
FeatureState state = featureModel.toFeatureState();
featureManager.setFeatureState(state);
response.sendRedirect("index");
}