FeaturesScannerProvisionOption[] features = subsystem.getOptions(FeaturesScannerProvisionOption.class);
for (FeaturesScannerProvisionOption feature : features) {
String fullFeatureUrl = feature.getURL();
String[] split = fullFeatureUrl.split("\\!/");
String url = split[0].replaceAll("scan-features:", "");
retVal.add(new KarafDistributionConfigurationFileExtendOption(FeaturesCfg.REPOSITORIES, "," + url));
retVal.add(new KarafDistributionConfigurationFileExtendOption(FeaturesCfg.BOOT, "," + split[1]));
}
return retVal;
}