final KarafPlatformModel karafPlatformModel = getKarafPlatformModel();
monitor.subTask("Resolving Features Repository for Apache Karaf Project: " + karafProject.getName());
final FeaturesSection featuresSection = (FeaturesSection) karafPlatformModel.getAdapter(FeaturesSection.class);
final FeaturesResolverJob job = new FeaturesResolverJob(karafProject.getName(), karafPlatformModel, featuresSection);
job.schedule();
try {
job.join();
final List<FeaturesRepository> featuresRepositories = job.getFeaturesRepositories();
final IFolder folder = getKarafProject().getFolder("features");
if (!folder.exists()) {
folder.create(true, true, monitor);
}