if (!configuration.getAttribute(KarafLaunchConfigurationConstants.KARAF_LAUNCH_FEATURES_MANAGEMENT, true)) {
return;
}
final FeaturesSection featuresSection =
(FeaturesSection) platformModel.getAdapter(FeaturesSection.class);
featuresSection.load();
final String bootFeaturesString =
configuration.getAttribute(KarafLaunchConfigurationConstants.KARAF_LAUNCH_BOOT_FEATURES, ""); //$NON-NLS-1$
final String[] bootFeaturesArray = bootFeaturesString.split(",");
final List<String> features = new ArrayList<String>();
Collections.addAll(features, bootFeaturesArray);
featuresSection.setBootFeatureNames(features);
featuresSection.save();
}