final IPath obrFile =
platformFolder.getRawLocation().append("eclipse.obr").addFileExtension("xml");
platformFolder.refreshLocal(0, monitor);
final PopulateObrFileJob populateObrJob = new PopulateObrFileJob(karafProject.getName(), obrFile.toFile());
populateObrJob.schedule();
try {
populateObrJob.join();
} catch (final InterruptedException e) {
Thread.interrupted();
throw new CoreException(new Status(IStatus.ERROR, KarafUIPluginActivator.PLUGIN_ID, "Unable to populate OBR file", e));
}
}